assert

package
v0.0.0-...-4818bad Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calls

func Calls(t testing.TB, got, want int)

func Contains

func Contains[T comparable](t testing.TB, slice []T, element T)

func ContentType

func ContentType(t testing.TB, got, want string)

func DoesNotContain

func DoesNotContain[T comparable](t testing.TB, slice []T, element T)

func DoesNotEqual

func DoesNotEqual[T any](t testing.TB, got, want T)

func Equals

func Equals[T any](t testing.TB, got, want T)

func ErrorContains

func ErrorContains(t testing.TB, got, want error)

func HasError

func HasError(t testing.TB, err error)

func HasLength

func HasLength[T any](t testing.TB, s []T, length int)

func HasNoError

func HasNoError(t testing.TB, err error)

func Status

func Status(t testing.TB, got, want int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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