diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-04-14 00:41:25 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-04-14 00:41:25 +0200 |
| commit | 9191e018ff90deb99f3881966a5d356a05027e0f (patch) | |
| tree | c36880ed2c0755132306141e61c8073d2926b0de /internal/must/must.go | |
| parent | 49a52b73afac2c97a8f3b7cffd434b29e6f30fcf (diff) | |
| download | go-oblast-9191e018ff90deb99f3881966a5d356a05027e0f.tar.gz | |
initial test coverage for Store.Select functions
Diffstat (limited to 'internal/must/must.go')
| -rw-r--r-- | internal/must/must.go | 2 |
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()) } |
