check

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: EUPL-1.2 Imports: 1 Imported by: 0

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.

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL