Versions in this module Expand all Collapse all v0 v0.0.1 Jul 21, 2022 Changes in this version + func Check(cases Cases) error + func Equal(t T, got interface{}, expect interface{}, msg ...string) + func Error(t T, got error, expr string, msg ...string) + func False(t T, got bool, msg ...string) + func Implements(t T, got interface{}, expect interface{}, msg ...string) + func IsNil(v reflect.Value) bool + func JsonEqual(t T, got string, expect string, msg ...string) + func Matches(t T, got string, expr string, msg ...string) + func Nil(t T, got interface{}, msg ...string) + func NotEqual(t T, got interface{}, expect interface{}, msg ...string) + func NotNil(t T, got interface{}, msg ...string) + func NotSame(t T, got interface{}, expect interface{}, msg ...string) + func Panic(t T, fn func(), expr string, msg ...string) + func Same(t T, got interface{}, expect interface{}, msg ...string) + func True(t T, got bool, msg ...string) + func TypeOf(t T, got interface{}, expect interface{}, msg ...string) + type Assertion struct + func That(t T, v interface{}) *Assertion + func (a *Assertion) HasPrefix(prefix string, msg ...string) *Assertion + func (a *Assertion) IsEqualTo(expect interface{}, msg ...string) *Assertion + func (a *Assertion) IsFalse(msg ...string) *Assertion + func (a *Assertion) IsNil(msg ...string) *Assertion + func (a *Assertion) IsNotEqualTo(expect interface{}, msg ...string) *Assertion + func (a *Assertion) IsNotNil(msg ...string) *Assertion + func (a *Assertion) IsNotSame(expect interface{}, msg ...string) *Assertion + func (a *Assertion) IsSame(expect interface{}, msg ...string) *Assertion + func (a *Assertion) IsTrue(msg ...string) *Assertion + type BoolAssertion struct + func ThatBool(t T, v bool) *BoolAssertion + func (a *BoolAssertion) IsFalse(msg ...string) *BoolAssertion + func (a *BoolAssertion) IsTrue(msg ...string) *BoolAssertion + type Cases = []struct + type MockT struct + func NewMockT(ctrl *gomock.Controller) *MockT + func (m *MockT) EXPECT() *MockTMockRecorder + func (m *MockT) Fail() + func (m *MockT) Helper() + func (m *MockT) Log(args ...interface{}) + type MockTMockRecorder struct + func (mr *MockTMockRecorder) Fail() *gomock.Call + func (mr *MockTMockRecorder) Helper() *gomock.Call + func (mr *MockTMockRecorder) Log(args ...interface{}) *gomock.Call + type StringAssertion struct + func ThatString(t T, v string) *StringAssertion + func (a *StringAssertion) HasPrefix(prefix string, msg ...string) *StringAssertion + func (a *StringAssertion) HasSubString(substr string, msg ...string) *StringAssertion + func (a *StringAssertion) HasSuffix(suffix string, msg ...string) *StringAssertion + func (a *StringAssertion) IsEqualFold(s string, msg ...string) *StringAssertion + type T interface + Fail func() + Helper func() + Log func(args ...interface{})