Documentation
¶
Overview ¶
Package mock_account is a generated GoMock package.
Package mock_account is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRepository) GetAccount ¶
func (m *MockRepository) GetAccount(ID int64) (*domain.Account, error)
GetAccount mocks base method
func (*MockRepository) SaveAccount ¶
func (m *MockRepository) SaveAccount(account *domain.Account) error
SaveAccount mocks base method
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository
func (*MockRepositoryMockRecorder) GetAccount ¶
func (mr *MockRepositoryMockRecorder) GetAccount(ID interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount
func (*MockRepositoryMockRecorder) SaveAccount ¶
func (mr *MockRepositoryMockRecorder) SaveAccount(account interface{}) *gomock.Call
SaveAccount indicates an expected call of SaveAccount
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) GetAccount ¶
func (m *MockService) GetAccount(ID int64) (*domain.Account, error)
GetAccount mocks base method
func (*MockService) SaveAccount ¶
func (m *MockService) SaveAccount(person *domain.Account) error
SaveAccount mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) GetAccount ¶
func (mr *MockServiceMockRecorder) GetAccount(ID interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount
func (*MockServiceMockRecorder) SaveAccount ¶
func (mr *MockServiceMockRecorder) SaveAccount(person interface{}) *gomock.Call
SaveAccount indicates an expected call of SaveAccount