Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockSvc
- func (m *MockSvc) Close()
- func (m *MockSvc) CreateUser(arg0 context.Context, arg1 *model.User) error
- func (m *MockSvc) DeleteUser(arg0 context.Context, arg1 int64) error
- func (m *MockSvc) EXPECT() *MockSvcMockRecorder
- func (m *MockSvc) HandPing(arg0 context.Context, arg1 *model.Ping) (*model.Ping, error)
- func (m *MockSvc) Ping(arg0 context.Context) error
- func (m *MockSvc) ReadUser(arg0 context.Context, arg1 int64) (*model.User, error)
- func (m *MockSvc) UpdateUser(arg0 context.Context, arg1 *model.User) error
- type MockSvcMockRecorder
- func (mr *MockSvcMockRecorder) Close() *gomock.Call
- func (mr *MockSvcMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSvcMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSvcMockRecorder) HandPing(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSvcMockRecorder) Ping(arg0 interface{}) *gomock.Call
- func (mr *MockSvcMockRecorder) ReadUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSvcMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSvc ¶
type MockSvc struct {
// contains filtered or unexported fields
}
MockSvc is a mock of Svc interface
func NewMockSvc ¶
func NewMockSvc(ctrl *gomock.Controller) *MockSvc
NewMockSvc creates a new mock instance
func (*MockSvc) CreateUser ¶
CreateUser mocks base method
func (*MockSvc) DeleteUser ¶
DeleteUser mocks base method
func (*MockSvc) EXPECT ¶
func (m *MockSvc) EXPECT() *MockSvcMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockSvcMockRecorder ¶
type MockSvcMockRecorder struct {
// contains filtered or unexported fields
}
MockSvcMockRecorder is the mock recorder for MockSvc
func (*MockSvcMockRecorder) Close ¶
func (mr *MockSvcMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockSvcMockRecorder) CreateUser ¶
func (mr *MockSvcMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser
func (*MockSvcMockRecorder) DeleteUser ¶
func (mr *MockSvcMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser
func (*MockSvcMockRecorder) HandPing ¶ added in v1.6.0
func (mr *MockSvcMockRecorder) HandPing(arg0, arg1 interface{}) *gomock.Call
HandPing indicates an expected call of HandPing
func (*MockSvcMockRecorder) Ping ¶
func (mr *MockSvcMockRecorder) Ping(arg0 interface{}) *gomock.Call
Ping indicates an expected call of Ping
func (*MockSvcMockRecorder) ReadUser ¶
func (mr *MockSvcMockRecorder) ReadUser(arg0, arg1 interface{}) *gomock.Call
ReadUser indicates an expected call of ReadUser
func (*MockSvcMockRecorder) UpdateUser ¶
func (mr *MockSvcMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser