test

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetErrorsFatal added in v1.1.0

func SetErrorsFatal(cond bool)

func ShouldBeEqual

func ShouldBeEqual(t *testing.T, value1 interface{}, value2 interface{}, opts ...cmp.Option) bool

func ShouldBeError

func ShouldBeError(t *testing.T, err error, format string, v ...any) bool

func ShouldBeFalse

func ShouldBeFalse(t *testing.T, condition bool, format string, v ...any) bool

func ShouldBeInArray

func ShouldBeInArray[V interface{} | types.Basic](t *testing.T, array []V, value V, opts ...cmp.Option) bool

func ShouldBeNil

func ShouldBeNil(t *testing.T, value interface{}, format string, v ...any) bool

func ShouldBeNoError

func ShouldBeNoError(t *testing.T, err error, format string, v ...any) bool

func ShouldBeSubstring

func ShouldBeSubstring(t *testing.T, str string, sub string) bool

func ShouldBeTrue

func ShouldBeTrue(t *testing.T, condition bool, format string, v ...any) bool

func ShouldNotBeEqual

func ShouldNotBeEqual(t *testing.T, value1 interface{}, value2 interface{}, opts ...cmp.Option) bool

func ShouldNotBeInArray

func ShouldNotBeInArray[V interface{} | string](t *testing.T, array []V, value V, opts ...cmp.Option) bool

func ShouldNotBeNil

func ShouldNotBeNil(t *testing.T, value interface{}, format string, v ...any) bool

func ShouldNotBeSubString

func ShouldNotBeSubString(t *testing.T, str string, sub string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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