expect

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoError        = require.NoError
	HasError       = require.Error
	True           = require.True
	False          = require.False
	Nil            = require.Nil
	NotNil         = require.NotNil
	ErrorContains  = require.ErrorContains
	Panics         = require.Panics
	Greater        = require.Greater
	Less           = require.Less
	GreaterOrEqual = require.GreaterOrEqual
	LessOrEqual    = require.LessOrEqual
)

Functions

func Contains

func Contains[T any](t *testing.T, got T, wants []T, msgAndArgs ...any)

func Equal

func Equal[T any](t *testing.T, got T, want T, msgAndArgs ...any)

func ErrorIs

func ErrorIs(t *testing.T, expected error, err error, msgAndArgs ...any)

func ErrorT

func ErrorT[T error](t *testing.T, err error, msgAndArgs ...any)

func Must

func Must[Result any](r Result, err error) Result

func NotEqual

func NotEqual[T any](t *testing.T, got T, want T, msgAndArgs ...any)

func StringsContain

func StringsContain(t *testing.T, got string, want string, msgAndArgs ...any)

func Type

func Type[T any](t *testing.T, got any, msgAndArgs ...any) (_ T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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