💾 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

View Raw

More Information

⬅️ Previous capture (2024-03-21)

-=-=-=-=-=-=-

check package - code.pfad.fr/swift

import "code.pfad.fr/swift/internal/check"

Types

type Failed

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

func Equal[T comparable](t testing.TB, want, got T) Failed

Equal calls t.Errorf if want != got.

func Equals

func Equals[S ~[]E, E comparable](t testing.TB, want, got S) Failed

Equals calls t.Errorf if want != got.

func (Failed) FailNow

func (f Failed) FailNow()

FailNow stops the test execution if the check failed (no-op otherwise), cf [testing.T.FailNow].

testing.T.FailNow

func (Failed) Log

func (f Failed) Log(args ...any)

Log records the text in the error log if the check failed (no-op otherwise)

func (Failed) Logf

func (f Failed) Logf(format string, args ...any)

Logf records the text in the error log if the check failed (no-op otherwise)

Files

check.go

Breadcrumb

code.pfad.fr/swift