tst

package
v0.0.461 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertArrayEqual added in v0.0.295

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

func AssertDeRefEqual

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

func AssertDeepEqual added in v0.0.266

func AssertDeepEqual[T any](t *testing.T, actual T, expected T)

func AssertEqual

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

func AssertFalse

func AssertFalse(t *testing.T, value bool)

func AssertHexEqual

func AssertHexEqual(t *testing.T, expected string, actual []byte)

func AssertIdentEqual

func AssertIdentEqual[T comparable](t *testing.T, ident string, actual T, expected T)

func AssertIdentFalse

func AssertIdentFalse(t *testing.T, ident string, value bool)

func AssertIdentNotEqual

func AssertIdentNotEqual[T comparable](t *testing.T, ident string, actual T, expected T)

func AssertIdentPtrEqual

func AssertIdentPtrEqual[T comparable](t *testing.T, ident string, actual *T, expected *T)

func AssertIdentTrue

func AssertIdentTrue(t *testing.T, ident string, value bool)

func AssertNoErr added in v0.0.171

func AssertNoErr(t *testing.T, anerr error)

func AssertNotDeepEqual added in v0.0.266

func AssertNotDeepEqual[T any](t *testing.T, actual T, expected T)

func AssertNotEqual

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

func AssertPtrEqual

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

func AssertSetDeepEqual added in v0.0.269

func AssertSetDeepEqual[T any](t *testing.T, actual []T, expected []T)

func AssertStrRepEqual added in v0.0.383

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

func AssertStrRepNotEqual added in v0.0.383

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

func AssertTrue

func AssertTrue(t *testing.T, value bool)

func Must added in v0.0.292

func Must[T any](v T, anerr error) func(t *testing.T) T

Must can b used to AssertNoErr of an (T, err) function

Usage:

input := "123.8" value := tst.Must(strconv.Atoi(input))(t)

Types

This section is empty.

Jump to

Keyboard shortcuts

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