55 lines
1.5 KiB
Go
55 lines
1.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: gomock/user.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=gomock/user.go -destination=gomock/mock_user.go -package=gomock
|
|
//
|
|
|
|
// Package gomock is a generated GoMock package.
|
|
package gomock
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockUserService is a mock of UserService interface.
|
|
type MockUserService struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockUserServiceMockRecorder
|
|
}
|
|
|
|
// MockUserServiceMockRecorder is the mock recorder for MockUserService.
|
|
type MockUserServiceMockRecorder struct {
|
|
mock *MockUserService
|
|
}
|
|
|
|
// NewMockUserService creates a new mock instance.
|
|
func NewMockUserService(ctrl *gomock.Controller) *MockUserService {
|
|
mock := &MockUserService{ctrl: ctrl}
|
|
mock.recorder = &MockUserServiceMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetUser mocks base method.
|
|
func (m *MockUserService) GetUser(id int) (*User, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetUser", id)
|
|
ret0, _ := ret[0].(*User)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetUser indicates an expected call of GetUser.
|
|
func (mr *MockUserServiceMockRecorder) GetUser(id any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockUserService)(nil).GetUser), id)
|
|
}
|