Versions in this module Expand all Collapse all v0 v0.2.12 Nov 3, 2021 Changes in this version + func AssertCompletesIn(t testRunner, duration time.Duration, f func(), msg ...interface{}) + func AssertContains(t testRunner, object, element interface{}, msg ...interface{}) + func AssertDecreasing(t testRunner, object interface{}, msg ...interface{}) + func AssertDirEmpty(t testRunner, dir string, msg ...interface{}) + func AssertDirExist(t testRunner, dir string, msg ...interface{}) + func AssertDirNotEmpty(t testRunner, dir string, msg ...interface{}) + func AssertEqual(t testRunner, expected interface{}, actual interface{}, msg ...interface{}) + func AssertEqualValues(t testRunner, expected interface{}, actual interface{}, msg ...interface{}) + func AssertErrorIs(t testRunner, err, target error, msg ...interface{}) + func AssertFalse(t testRunner, value interface{}, msg ...interface{}) + func AssertFileExists(t testRunner, file string, msg ...interface{}) + func AssertGreater(t testRunner, object1, object2 interface{}, msg ...interface{}) + func AssertImplements(t testRunner, interfaceObject, object interface{}, msg ...interface{}) + func AssertIncreasing(t testRunner, object interface{}, msg ...interface{}) + func AssertKindOf(t testRunner, expectedKind reflect.Kind, object interface{}, ...) + func AssertLen(t testRunner, object interface{}, length int, msg ...interface{}) + func AssertLess(t testRunner, object1, object2 interface{}, msg ...interface{}) + func AssertNil(t testRunner, object interface{}, msg ...interface{}) + func AssertNoDirExists(t testRunner, dir string, msg ...interface{}) + func AssertNoError(t testRunner, err error, msg ...interface{}) + func AssertNoFileExists(t testRunner, file string, msg ...interface{}) + func AssertNotCompletesIn(t testRunner, duration time.Duration, f func(), msg ...interface{}) + func AssertNotContains(t testRunner, object, element interface{}, msg ...interface{}) + func AssertNotEqual(t testRunner, expected interface{}, actual interface{}, msg ...interface{}) + func AssertNotEqualValues(t testRunner, expected interface{}, actual interface{}, msg ...interface{}) + func AssertNotErrorIs(t testRunner, err, target error, msg ...interface{}) + func AssertNotImplements(t testRunner, interfaceObject, object interface{}, msg ...interface{}) + func AssertNotKindOf(t testRunner, kind reflect.Kind, object interface{}, msg ...interface{}) + func AssertNotNil(t testRunner, object interface{}, msg ...interface{}) + func AssertNotNumeric(t testRunner, object interface{}, msg ...interface{}) + func AssertNotPanics(t testRunner, f func(), msg ...interface{}) + func AssertNotRegexp(t testRunner, regex interface{}, txt interface{}, msg ...interface{}) + func AssertNotZero(t testRunner, value interface{}, msg ...interface{}) + func AssertNumeric(t testRunner, object interface{}, msg ...interface{}) + func AssertPanics(t testRunner, f func(), msg ...interface{}) + func AssertRegexp(t testRunner, regex interface{}, txt interface{}, msg ...interface{}) + func AssertTestFails(t testRunner, test func(t TestingPackageWithFailFunctions), msg ...interface{}) + func AssertTrue(t testRunner, value interface{}, msg ...interface{}) + func AssertZero(t testRunner, value interface{}, msg ...interface{}) + func CaptureStderr(capture func(w io.Writer) error) (string, error) + func CaptureStdout(capture func(w io.Writer) error) (string, error) + func CaptureStdoutAndStderr(capture func(stdoutWriter, stderrWriter io.Writer) error) (stdout, stderr string, err error) + func MockInputBoolFull() []bool + func MockInputBoolModify(inputSlice []bool, modifier func(index int, value bool) bool) (floats []bool) + func MockInputBoolRunTests(t testRunner, testSet []bool, testFunc func(t *testing.T, index int, f bool)) + func MockInputFloat64Full() (floats []float64) + func MockInputFloat64GenerateRandomNegative(count int, min float64) (floats []float64) + func MockInputFloat64GenerateRandomPositive(count int, max float64) (floats []float64) + func MockInputFloat64GenerateRandomRange(count int, min, max float64) (floats []float64) + func MockInputFloat64Modify(inputSlice []float64, modifier func(index int, value float64) float64) (floats []float64) + func MockInputFloat64RunTests(t testRunner, testSet []float64, ...) + func MockInputIntFull() (ints []int) + func MockInputIntGenerateRandomNegative(count, min int) (ints []int) + func MockInputIntGenerateRandomPositive(count, max int) (ints []int) + func MockInputIntGenerateRandomRange(count, min, max int) (ints []int) + func MockInputIntModify(inputSlice []int, modifier func(index int, value int) int) (ints []int) + func MockInputIntRunTests(t testRunner, testSet []int, testFunc func(t *testing.T, index int, i int)) + func MockInputStringEmailAddresses() []string + func MockInputStringEmpty() []string + func MockInputStringFull() (ret []string) + func MockInputStringGenerateRandom(count, length int) (result []string) + func MockInputStringHtmlTags() []string + func MockInputStringLimit(testSet []string, max int) []string + func MockInputStringLong() (testSet []string) + func MockInputStringModify(inputSlice []string, modifier func(index int, value string) string) (ret []string) + func MockInputStringNumeric() []string + func MockInputStringRunTests(t testRunner, testSet []string, ...) + func MockInputStringUsernames() []string + func SetColorsEnabled(enabled bool) + func SetLineNumbersEnabled(enabled bool) + func SetRandomSeed(seed int64) + func SnapshotCreate(name string, snapshotObject interface{}) error + func SnapshotCreateOrValidate(t testRunner, name string, object interface{}, msg ...interface{}) error + func SnapshotValidate(t testRunner, name string, actual interface{}, msg ...interface{}) error + type TestingPackageWithFailFunctions interface + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Fail func() + FailNow func() + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{})