diff options
Diffstat (limited to 'assert/assert.go')
| -rw-r--r-- | assert/assert.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/assert/assert.go b/assert/assert.go index fe725f6..7b75026 100644 --- a/assert/assert.go +++ b/assert/assert.go @@ -11,3 +11,5 @@ import "go.xyrillian.de/gg/testcapture" // Functions in this package use this type instead of [testing.TB] to allow // mocks of [testing.TB] to be substituted in tests for this package. type TestingTB = testcapture.TestingTB + +// TODO: with 1.27 generic methods, we can finally build a worthy successor to go-bits/must.{SucceedT,ReturnT}: must := assert.Must(t), then must.Return() and must.Succeed() as normal; normal must.{Succeed,Return} should panic if testing.Testing |
