Say mustPanic wants internalError's phrase

This commit is contained in:
2026-09-29 01:41:24 +02:00
committed by Lillem4n
parent 125fb1e9aa
commit e88c7e0170
+2 -2
View File
@@ -213,8 +213,8 @@ func TestArgGuardsPanic(t *testing.T) {
}
}
// mustPanic fails unless call panics, which is what separates a reported
// invariant break from a silently wrong value.
// mustPanic fails unless call panics with internalError's phrase, which is what
// separates a reported invariant break from a silently wrong value.
func mustPanic(t *testing.T, name string, call func()) {
t.Helper()
defer func() {