Versions in this module Expand all Collapse all v0 v0.1.1 Jan 15, 2025 v0.1.0 Sep 29, 2024 v0.0.9 Sep 29, 2024 v0.0.8 May 15, 2024 v0.0.7 Apr 26, 2024 v0.0.6 Apr 13, 2024 v0.0.5 Apr 13, 2024 v0.0.4 Apr 13, 2024 v0.0.3 Apr 12, 2024 v0.0.2 Apr 12, 2024 v0.0.1 Apr 12, 2024 Changes in this version + const ErrCanNotRunIfNotBuiltinTesting + var DiffContextLines = 2 + var Highlight = pterm.NewStyle(pterm.FgLightRed).Sprint + var LineNumbersEnabled = true + func AssertCompareHelper(t testRunner, object any, option int, msg ...any) + func AssertDirEmptyHelper(t testRunner, dir string) bool + func AssertRegexpHelper(t testRunner, regex any, txt any, shouldMatch bool, msg ...any) + 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 any) bool + func Fail(t testRunner, message string, objects Objects, args ...any) + func FailS(message string, objects Objects, args ...any) string + func GetCurrentScriptDirectory() string + func GetDifference(a, b any, raw ...bool) string + func GetTest(t testRunner) *testing.T + func HasEqualValues(expected any, actual any) bool + func HasSameElements(expected any, actual any) bool + func IsEqual(expected any, actual any) bool + func IsList(list any) bool + func IsSubset[T comparable](t testRunner, list []T, subset []T) bool + func ModifyWrappedText(text, wrappingString string, modifier func(wrappedText string) string) string + type Object struct + Data any + DataStyle *pterm.Style + Name string + NameStyle *pterm.Style + Raw bool + func NewDiffObject(expected, actual any, raw ...bool) Object + type Objects []Object + func NewObjectsExpectedActual(expected, actual any) Objects + func NewObjectsExpectedActualWithDiff(expected, actual any) Objects + func NewObjectsSingleNamed(name string, obj any) Objects + func NewObjectsSingleUnknown(obj any) Objects + func NewObjectsUnknown(objs ...any) Objects