Documentation ¶
Index ¶
- 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 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 MockT
- type MockTMockRecorder
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Implements ¶
Implements assertion failed when got doesn't implement expect.
Types ¶
type MockT ¶
type MockT struct {
// contains filtered or unexported fields
}
MockT is a mock of T interface.
func (*MockT) EXPECT ¶
func (m *MockT) EXPECT() *MockTMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTMockRecorder ¶
type MockTMockRecorder struct {
// contains filtered or unexported fields
}
MockTMockRecorder is the mock recorder for MockT.
func (*MockTMockRecorder) Error ¶
func (mr *MockTMockRecorder) Error(args ...interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockTMockRecorder) Helper ¶
func (mr *MockTMockRecorder) Helper() *gomock.Call
Helper indicates an expected call of Helper.
Click to show internal directories.
Click to hide internal directories.