Skip to content

Commit

Permalink
Merge pull request #115 from bayashi/fix-test-location
Browse files Browse the repository at this point in the history
fix localtion of failer
  • Loading branch information
bayashi committed Feb 23, 2024
2 parents 5442868 + f553fe9 commit 05c6099
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ go 1.21

require github.com/pmezard/go-difflib v1.0.0 // indirect

require github.com/bayashi/witness v0.0.16
require github.com/bayashi/witness v0.0.17

require github.com/davecgh/go-spew v1.1.1 // indirect
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/bayashi/witness v0.0.16 h1:QEb2mdPbzXmlZBJqMJYji72t5Do3qYmj/sid5mGbTg4=
github.com/bayashi/witness v0.0.16/go.mod h1:xxXU08y35qzkp0kDRGVYuvHB5JVxFKe6vF16puu7gEo=
github.com/bayashi/witness v0.0.17 h1:f8bZL+MB+06DAF14YXgHqf7IF2oepcM2ILZ2H9khXOc=
github.com/bayashi/witness v0.0.17/go.mod h1:xxXU08y35qzkp0kDRGVYuvHB5JVxFKe6vF16puu7gEo=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
2 changes: 2 additions & 0 deletions helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func Diff(a any, b any) string {
}
*/
func Fail(t *testing.T, reason string, got any, expect ...any) {
t.Helper()
witness.Fail(t, reason, got, expect...)
}

Expand All @@ -132,5 +133,6 @@ func Fail(t *testing.T, reason string, got any, expect ...any) {
}
*/
func FailNow(t *testing.T, reason string, got any, expect ...any) {
t.Helper()
witness.FailNow(t, reason, got, expect...)
}

0 comments on commit 05c6099

Please sign in to comment.