Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const Error + const Fatal + const Log + type Assertion struct + func For(t interface{}, msg string, args ...interface{}) *Assertion + func (a *Assertion) Add(key string, values ...interface{}) *Assertion + func (a *Assertion) Compare(value interface{}, op string, expect ...interface{}) *Assertion + func (a *Assertion) CompareRaw(value interface{}, op string, expect ...interface{}) *Assertion + func (a *Assertion) Critical() *Assertion + func (a *Assertion) Error(args ...interface{}) + func (a *Assertion) Expect(op string, values ...interface{}) *Assertion + func (a *Assertion) ExpectRaw(op string, values ...interface{}) *Assertion + func (a *Assertion) Fatal(args ...interface{}) + func (a *Assertion) Got(values ...interface{}) *Assertion + func (a *Assertion) Log(args ...interface{}) + func (a *Assertion) Print(args ...interface{}) *Assertion + func (a *Assertion) Printf(format string, args ...interface{}) *Assertion + func (a *Assertion) Println(args ...interface{}) *Assertion + func (a *Assertion) Raw(args ...interface{}) *Assertion + func (a *Assertion) Rawln(args ...interface{}) *Assertion + func (a *Assertion) Test(condition bool) bool + func (a *Assertion) TestCustomDeepDiff(value, expect interface{}, c compare.Custom) bool + func (a *Assertion) TestCustomDeepEqual(value, expect interface{}, c compare.Custom) bool + func (a *Assertion) TestCustomDeepNotEqual(value, expect interface{}, c compare.Custom) bool + func (a *Assertion) TestDeepDiff(value, expect interface{}) bool + func (a *Assertion) TestDeepEqual(value, expect interface{}) bool + func (a *Assertion) TestDeepNotEqual(value, expect interface{}) bool + func (a Assertion) Commit() + func (a Assertion) PrintPretty(value interface{}) + func (a Assertion) That(value interface{}) OnValue + func (a Assertion) ThatBoolean(value bool) OnBoolean + func (a Assertion) ThatDuration(value time.Duration) OnDuration + func (a Assertion) ThatEnum(enum Enum) OnEnum + func (a Assertion) ThatError(err error) OnError + func (a Assertion) ThatFloat(value float64) OnFloat + func (a Assertion) ThatInteger(value int) OnInteger + func (a Assertion) ThatMap(mp interface{}) OnMap + func (a Assertion) ThatSlice(slice interface{}) OnSlice + func (a Assertion) ThatString(value interface{}) OnString + type Enum interface + Parse func(value string) error + String func() string + type Manager struct + func To(t interface{}) Manager + func (ctx Manager) For(msg string, args ...interface{}) *Assertion + type OnBoolean struct + func (o OnBoolean) Equals(expect bool) bool + func (o OnBoolean) IsFalse() bool + func (o OnBoolean) IsTrue() bool + func (o OnBoolean) NotEquals(test bool) bool + type OnDuration struct + func (o OnDuration) IsAtLeast(min time.Duration) bool + func (o OnDuration) IsAtMost(max time.Duration) bool + type OnEnum struct + func (o OnEnum) CannotUnmarshal(data string) bool + func (o OnEnum) HasName(name string) bool + type OnError struct + func (o OnError) DeepEquals(expect error) bool + func (o OnError) Equals(expect error) bool + func (o OnError) Failed() bool + func (o OnError) HasCause(expect error) bool + func (o OnError) HasMessage(expect string) bool + func (o OnError) Succeeded() bool + type OnFloat struct + func (o OnFloat) Equals(v, tolerance float64) bool + func (o OnFloat) IsAtLeast(min float64) bool + func (o OnFloat) IsAtMost(max float64) bool + type OnInteger struct + func (o OnInteger) Equals(expect int) bool + func (o OnInteger) IsAtLeast(min int) bool + func (o OnInteger) IsAtMost(max int) bool + func (o OnInteger) IsBetween(min, max int) bool + func (o OnInteger) NotEquals(test int) bool + type OnMap struct + func (o OnMap) DeepEquals(expected interface{}) bool + func (o OnMap) Equals(expected interface{}) bool + func (o OnMap) EqualsWithComparator(expected interface{}, same func(a, b interface{}) bool) bool + func (o OnMap) IsEmpty() bool + func (o OnMap) IsLength(length int) bool + func (o OnMap) IsNotEmpty() bool + type OnSlice struct + func (o OnSlice) DeepEquals(expected interface{}) bool + func (o OnSlice) Equals(expected interface{}) bool + func (o OnSlice) EqualsOneOf(expecteds interface{}) bool + func (o OnSlice) EqualsWithComparator(expected interface{}, same func(a, b interface{}) bool) bool + func (o OnSlice) IsEmpty() bool + func (o OnSlice) IsLength(length int) bool + func (o OnSlice) IsNotEmpty() bool + type OnString struct + func (o OnString) Contains(substr string) bool + func (o OnString) DoesNotContain(substr string) bool + func (o OnString) Equals(expect string) bool + func (o OnString) HasPrefix(substr string) bool + func (o OnString) HasSuffix(substr string) bool + func (o OnString) NotEquals(test string) bool + type OnValue struct + func (o OnValue) CustomDeepEquals(expect interface{}, c compare.Custom) bool + func (o OnValue) DeepEquals(expect interface{}) bool + func (o OnValue) DeepNotEquals(test interface{}) bool + func (o OnValue) Equals(expect interface{}) bool + func (o OnValue) Implements(iface reflect.Type) bool + func (o OnValue) IsNil() bool + func (o OnValue) IsNotNil() bool + func (o OnValue) NotEquals(test interface{}) bool + type Output interface + Error func(...interface{}) + Fatal func(...interface{}) + Log func(...interface{}) Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021