check

package
v0.0.0-...-11eb462 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

check implements several helper methods for comparing elements during tests, all of which allow the test to continue running.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(t *testing.T, a, b, delta float64)

func CloseMsg

func CloseMsg(t *testing.T, a, b, delta float64, msg string)

func DeepEq

func DeepEq(t *testing.T, got, expected any)

func DeepEqMsg

func DeepEqMsg(t *testing.T, got, expected any, msg string)

func Eq

func Eq[T comparable](t *testing.T, got, expected T)

func EqMsg

func EqMsg[T comparable](t *testing.T, got, expected T, msg string)

func Err

func Err(t *testing.T, got error)

func ErrMsg

func ErrMsg(t *testing.T, got error, msg string)

func False

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

func FalseMsg

func FalseMsg(t *testing.T, got bool, msg string)

func Ge

func Ge[T constraints.Ordered](t *testing.T, a, b T)

func GeMsg

func GeMsg[T constraints.Ordered](t *testing.T, a, b T, msg string)

func Gt

func Gt[T constraints.Ordered](t *testing.T, a, b T)

func GtMsg

func GtMsg[T constraints.Ordered](t *testing.T, a, b T, msg string)

func Inf

func Inf(t *testing.T, got float64)

func InfMsg

func InfMsg(t *testing.T, got float64, msg string)

func Le

func Le[T constraints.Ordered](t *testing.T, a, b T)

func LeMsg

func LeMsg[T constraints.Ordered](t *testing.T, a, b T, msg string)

func Lt

func Lt[T constraints.Ordered](t *testing.T, a, b T)

func LtMsg

func LtMsg[T constraints.Ordered](t *testing.T, a, b T, msg string)

func NaN

func NaN(t *testing.T, got float64)

func NaNMsg

func NaNMsg(t *testing.T, got float64, msg string)

func Ne

func Ne[T comparable](t *testing.T, got, expected T)

func NeMsg

func NeMsg[T comparable](t *testing.T, got, expected T, msg string)

func NoErr

func NoErr(t *testing.T, got error)

func NoErrMsg

func NoErrMsg(t *testing.T, got error, msg string)

func Normal

func Normal(t *testing.T, got float64)

func NormalMsg

func NormalMsg(t *testing.T, got float64, msg string)

func NotInf

func NotInf(t *testing.T, got float64)

func NotInfMsg

func NotInfMsg(t *testing.T, got float64, msg string)

func NotNaN

func NotNaN(t *testing.T, got float64)

func NotNaNMsg

func NotNaNMsg(t *testing.T, got float64, msg string)

func NotNormal

func NotNormal(t *testing.T, got float64)

func NotNormalMsg

func NotNormalMsg(t *testing.T, got float64, msg string)

func SpecificErr

func SpecificErr(t *testing.T, got, expected error)

func SpecificErrMsg

func SpecificErrMsg(t *testing.T, got, expected error, msg string)

func True

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

func TrueMsg

func TrueMsg(t *testing.T, got bool, msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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