aboutsummaryrefslogtreecommitdiff
path: root/internal/must/must.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/must/must.go')
-rw-r--r--internal/must/must.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/must/must.go b/internal/must/must.go
index e472579..7a137c6 100644
--- a/internal/must/must.go
+++ b/internal/must/must.go
@@ -7,6 +7,7 @@ import "testing"
// Succeed fails the test if err is not nil.
func Succeed(t testing.TB, err error) {
+ t.Helper()
if err != nil {
t.Fatal(err.Error())
}
@@ -16,6 +17,7 @@ func Succeed(t testing.TB, err error) {
// and either forwards the result value on success, or fails the test on error.
func Return[V any](value V, err error) func(testing.TB) V {
return func(t testing.TB) V {
+ t.Helper()
if err != nil {
t.Fatal(err.Error())
}