blob: 7f9847e00a09b9addcbd8b6014f0d10447f76ed0 [file] [log] [blame]
package golden_test
import (
"testing"
"gotest.tools/v3/assert"
"gotest.tools/v3/golden"
)
var t = &testing.T{}
func ExampleAssert() {
golden.Assert(t, "foo", "foo-content.golden")
}
func ExampleString() {
assert.Assert(t, golden.String("foo", "foo-content.golden"))
}
func ExampleAssertBytes() {
golden.AssertBytes(t, []byte("foo"), "foo-content.golden")
}