We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517ab06 commit e25343eCopy full SHA for e25343e
1 file changed
autogold.go
@@ -47,6 +47,7 @@ func update() bool {
47
// If the input value is of type Raw, its contents will be directly used instead of the value being
48
// formatted as a Go literal.
49
func ExpectFile(t *testing.T, got interface{}, opts ...Option) {
50
+ t.Helper()
51
dir := testdataDir(opts)
52
fileName := testName(t, opts)
53
outFile := filepath.Join(dir, fileName+".golden")
0 commit comments