Skip to content

Commit e25343e

Browse files
authored
ExpectFile as a helper to improve test tracing (#54)
1 parent 517ab06 commit e25343e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

autogold.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func update() bool {
4747
// If the input value is of type Raw, its contents will be directly used instead of the value being
4848
// formatted as a Go literal.
4949
func ExpectFile(t *testing.T, got interface{}, opts ...Option) {
50+
t.Helper()
5051
dir := testdataDir(opts)
5152
fileName := testName(t, opts)
5253
outFile := filepath.Join(dir, fileName+".golden")

0 commit comments

Comments
 (0)