testing

package
v0.0.0-...-ab2866d Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: GPL-3.0, GPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, x bool, m string)

func AssertEq

func AssertEq[T comparable](t *testing.T, x, y T)

func AssertEqDump

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

func AssertError

func AssertError(t *testing.T, err error)

func AssertSlice

func AssertSlice[T comparable](t *testing.T, xs, ys []T)

func Check

func Check(t *testing.T, err error)

func CopyOf

func CopyOf[T any](data []T) []T

func DigitsToNum

func DigitsToNum(ds []rune) (int, error)

func JoinBy

func JoinBy(f func() string, data ...string) string

func Noicer

func Noicer(seed int64, from, to rune) func() string

func Shuffler

func Shuffler[T any](seed int64) func([]T) []T

func Sorted

func Sorted[T constraints.Ordered](data ...T) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

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