From 1d81d624c83bf250d2ab0d76ba4705d71fce7e88 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Thu, 12 Nov 2026 01:01:30 +0100 Subject: assert: note for later --- assert/assert.go | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.3.1