Versions in this module Expand all Collapse all v0 v0.2.12 Nov 3, 2021 Changes in this version + const ErrCanNotRunIfNotBuiltinTesting + var Highlight = pterm.NewStyle(pterm.FgLightRed).Sprint + var LineNumbersEnabled = true + func AssertCompareHelper(t testRunner, object interface{}, option int, msg ...interface{}) + func AssertDirEmptyHelper(t testRunner, dir string) bool + func AssertRegexpHelper(t testRunner, regex interface{}, txt interface{}, shouldMatch bool, ...) + func CompareTwoValuesInASlice(a reflect.Value, compareFunc func(a, b reflect.Value) bool) (ret bool) + func CompletesIn(duration time.Duration, f func()) bool + func DoesContain(object, element interface{}) bool + func DoesImplement(interfaceObject, object interface{}) bool + func Fail(t testRunner, message string, objects Objects, args ...interface{}) + func FailS(message string, objects Objects, args ...interface{}) string + func GetCurrentScriptDirectory() string + func GetDifference(a, b interface{}, raw ...bool) string + func GetTest(t testRunner) *testing.T + func HasEqualValues(expected interface{}, actual interface{}) bool + func IsEqual(expected interface{}, actual interface{}) bool + func IsKind(expectedKind reflect.Kind, value interface{}) bool + func IsNil(object interface{}) bool + func IsNumber(value interface{}) bool + func IsZero(value interface{}) bool + func ModifyWrappedText(text, wrappingString string, modifier func(wrappedText string) string) string + type Object struct + Data interface{} + DataStyle *pterm.Style + Name string + NameStyle *pterm.Style + Raw bool + type Objects []Object + func NewObjectsExpectedActual(expected, actual interface{}) Objects + func NewObjectsSingleNamed(name string, obj interface{}) Objects + func NewObjectsSingleUnknown(obj interface{}) Objects + func NewObjectsUnknown(objs ...interface{}) Objects