check package

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

Index

type Failed

Failed can be used to conditionnally add more information (all method calls will be no-op if the check suceeded).

func Equal

Equal calls t.Errorf if want != got.

func Equals

Equals calls t.Errorf if want != got.

func (Failed) FailNow

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

func (Failed) Log

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

func (Failed) Logf

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

Source Files

check.go