assert

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T comparable](t *testing.T, actual, expected T)

Equal fail test if "actual" is different to "expected"

func EqualStruct

func EqualStruct(t *testing.T, actual, expected any)

EqualStruct fail test if "actual" is different to "expected"

func NilError

func NilError(t *testing.T, actual error)

NilError fail if actual error is not nil

func StringContains

func StringContains(t *testing.T, actual, expectedSubstring string)

StringContains fail test if "actual" not contain "expectedSubstring"

Types

This section is empty.

Jump to

Keyboard shortcuts

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