aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-11-12 01:01:30 +0100
committerStefan Majewsky <majewsky@gmx.net>2026-11-12 01:01:30 +0100
commit1d81d624c83bf250d2ab0d76ba4705d71fce7e88 (patch)
tree4a10f4d32a6878de15322604acbc6fe70776d764
parent0f14c9bcdf529a9d2bc3dbb669d41cde7f2c38d5 (diff)
downloadgo-gg-1d81d624c83bf250d2ab0d76ba4705d71fce7e88.tar.gz
assert: note for later
-rw-r--r--assert/assert.go2
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