mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
22 lines
364 B
Go
22 lines
364 B
Go
package golden_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gotest.tools/assert"
|
|
"gotest.tools/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")
|
|
}
|