Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockJSON
- func (m *MockJSON) EXPECT() *MockJSONMockRecorder
- func (m *MockJSON) Marshal(v interface{}) ([]byte, error)
- func (m *MockJSON) MarshalWrite(destPath string, v interface{}, pretty bool) error
- func (m *MockJSON) Unmarshal(data []byte, v interface{}) error
- func (m *MockJSON) UnmarshalRead(srcPath string, v interface{}) error
- type MockJSONMockRecorder
- func (mr *MockJSONMockRecorder) Marshal(v interface{}) *gomock.Call
- func (mr *MockJSONMockRecorder) MarshalWrite(destPath, v, pretty interface{}) *gomock.Call
- func (mr *MockJSONMockRecorder) Unmarshal(data, v interface{}) *gomock.Call
- func (mr *MockJSONMockRecorder) UnmarshalRead(srcPath, v interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockJSON ¶ added in v1.0.1
type MockJSON struct {
// contains filtered or unexported fields
}
MockJSON is a mock of JSON interface.
func NewMockJSON ¶ added in v1.0.1
func NewMockJSON(ctrl *gomock.Controller) *MockJSON
NewMockJSON creates a new mock instance.
func (*MockJSON) EXPECT ¶ added in v1.0.1
func (m *MockJSON) EXPECT() *MockJSONMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJSON) MarshalWrite ¶ added in v1.0.1
MarshalWrite mocks base method.
func (*MockJSON) UnmarshalRead ¶ added in v1.0.1
UnmarshalRead mocks base method.
type MockJSONMockRecorder ¶ added in v1.0.1
type MockJSONMockRecorder struct {
// contains filtered or unexported fields
}
MockJSONMockRecorder is the mock recorder for MockJSON.
func (*MockJSONMockRecorder) Marshal ¶ added in v1.0.1
func (mr *MockJSONMockRecorder) Marshal(v interface{}) *gomock.Call
Marshal indicates an expected call of Marshal.
func (*MockJSONMockRecorder) MarshalWrite ¶ added in v1.0.1
func (mr *MockJSONMockRecorder) MarshalWrite(destPath, v, pretty interface{}) *gomock.Call
MarshalWrite indicates an expected call of MarshalWrite.
func (*MockJSONMockRecorder) Unmarshal ¶ added in v1.0.1
func (mr *MockJSONMockRecorder) Unmarshal(data, v interface{}) *gomock.Call
Unmarshal indicates an expected call of Unmarshal.
func (*MockJSONMockRecorder) UnmarshalRead ¶ added in v1.0.1
func (mr *MockJSONMockRecorder) UnmarshalRead(srcPath, v interface{}) *gomock.Call
UnmarshalRead indicates an expected call of UnmarshalRead.
Click to show internal directories.
Click to hide internal directories.