Skip to content

Commit

Permalink
cmpimg: don't report errors in helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Nov 3, 2020
1 parent de78615 commit cf58149
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmpimg/checkplot.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func goldenPath(path string) string {
// For image.Image formats, a base64 encoded png representation is output to
// the testing log when a difference is identified.
func CheckPlot(ExampleFunc func(), t *testing.T, filenames ...string) {
t.Helper()

paths := make([]string, len(filenames))
for i, fn := range filenames {
paths[i] = filepath.Join("testdata", fn)
Expand Down

0 comments on commit cf58149

Please sign in to comment.