💾 Archived View for code.pfad.fr › swift › internal › check captured on 2024-05-10 at 10:48:32. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-03-21)
-=-=-=-=-=-=-
import "code.pfad.fr/swift/internal/check"
type Failed struct { // contains filtered or unexported fields }
Failed can be used to conditionnally add more information (all method calls will be no-op if the check suceeded).
func Equal[T comparable](t testing.TB, want, got T) Failed
Equal calls t.Errorf if want != got.
func Equals[S ~[]E, E comparable](t testing.TB, want, got S) Failed
Equals calls t.Errorf if want != got.
func (f Failed) FailNow()
FailNow stops the test execution if the check failed (no-op otherwise), cf [testing.T.FailNow].
func (f Failed) Log(args ...any)
Log records the text in the error log if the check failed (no-op otherwise)
func (f Failed) Logf(format string, args ...any)
Logf records the text in the error log if the check failed (no-op otherwise)