expect

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OnFail = func(t *testing.T) {
	if UseFailNow {
		t.FailNow()
	}
}
View Source
var UseFailNow = true

Functions

func Contains

func Contains(t *testing.T, a, contains any)

func DirExists

func DirExists(t *testing.T, path string)

func ElementsMatch

func ElementsMatch(t *testing.T, a, b any)

func Empty

func Empty(t *testing.T, a any)

func Equal

func Equal(t *testing.T, a, b any)

func EqualError

func EqualError(t *testing.T, a error, errString string)

func ErrorAs

func ErrorAs(t *testing.T, a error, b any)

func ErrorContains

func ErrorContains(t *testing.T, a error, contains string)

func ErrorIs

func ErrorIs(t *testing.T, a, b error)

func Fail

func Fail(t *testing.T, failureMessage string)

func FailNow

func FailNow(t *testing.T, failureMessage string)

func False

func False(t *testing.T, a bool)

func FileExists

func FileExists(t *testing.T, path string)

func Greater

func Greater(t *testing.T, e1, e2 any)

func GreaterOrEqual

func GreaterOrEqual(t *testing.T, e1, e2 any)

func Len

func Len(t *testing.T, a any, length int)

func Less

func Less(t *testing.T, e1, e2 any)

func LessOrEqual

func LessOrEqual(t *testing.T, e1, e2 any)

func Nil

func Nil(t *testing.T, a any)

func NotContains

func NotContains(t *testing.T, a, contains any)

func NotEmpty

func NotEmpty(t *testing.T, a any)

func NotEqual

func NotEqual(t *testing.T, a, b any)

func NotNil

func NotNil(t *testing.T, a any)

func NotZero

func NotZero(t *testing.T, a any)

func Subset

func Subset(t *testing.T, list any, subset any)

func True

func True(t *testing.T, a bool)

func Zero

func Zero(t *testing.T, a any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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