Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.
Click to show internal directories.
Click to hide internal directories.