diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-11-12 01:01:30 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-11-12 01:01:30 +0100 |
| commit | 1d81d624c83bf250d2ab0d76ba4705d71fce7e88 (patch) | |
| tree | 4a10f4d32a6878de15322604acbc6fe70776d764 /assert/assert.go | |
| parent | 0f14c9bcdf529a9d2bc3dbb669d41cde7f2c38d5 (diff) | |
| download | go-gg-1d81d624c83bf250d2ab0d76ba4705d71fce7e88.tar.gz | |
assert: note for later
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 |
