Documentation ¶
Overview ¶
Package service is a generated GoMock package.
Index ¶
- type MockMyService
- func (m *MockMyService) CallAPI1(data string)
- func (m *MockMyService) CallAPI2(data string)
- func (m *MockMyService) CallAPI3(data string)
- func (m *MockMyService) CallAPI4(data string)
- func (m *MockMyService) ChargeUser(email, customerId string, amount int)
- func (m *MockMyService) CheckBalance(account string, amount int) bool
- func (m *MockMyService) CreateCreditMemo(account string, amount int, notes string) error
- func (m *MockMyService) CreateDebitMemo(account string, amount int, notes string) error
- func (m *MockMyService) Credit(account string, amount int) error
- func (m *MockMyService) Debit(account string, amount int) error
- func (m *MockMyService) EXPECT() *MockMyServiceMockRecorder
- func (m *MockMyService) SendEmail(recipient, subject, content string)
- func (m *MockMyService) UndoCreateCreditMemo(account string, amount int, notes string) error
- func (m *MockMyService) UndoCreateDebitMemo(account string, amount int, notes string) error
- func (m *MockMyService) UndoCredit(account string, amount int) error
- func (m *MockMyService) UndoDebit(account string, amount int) error
- func (m *MockMyService) UpdateExternalSystem(message string)
- type MockMyServiceMockRecorder
- func (mr *MockMyServiceMockRecorder) CallAPI1(data interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) CallAPI2(data interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) CallAPI3(data interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) CallAPI4(data interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) ChargeUser(email, customerId, amount interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) CheckBalance(account, amount interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) CreateCreditMemo(account, amount, notes interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) CreateDebitMemo(account, amount, notes interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) Credit(account, amount interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) Debit(account, amount interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) SendEmail(recipient, subject, content interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) UndoCreateCreditMemo(account, amount, notes interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) UndoCreateDebitMemo(account, amount, notes interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) UndoCredit(account, amount interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) UndoDebit(account, amount interface{}) *gomock.Call
- func (mr *MockMyServiceMockRecorder) UpdateExternalSystem(message interface{}) *gomock.Call
- type MyService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMyService ¶
type MockMyService struct {
// contains filtered or unexported fields
}
MockMyService is a mock of MyService interface.
func NewMockMyService ¶
func NewMockMyService(ctrl *gomock.Controller) *MockMyService
NewMockMyService creates a new mock instance.
func (*MockMyService) CallAPI1 ¶
func (m *MockMyService) CallAPI1(data string)
CallAPI1 mocks base method.
func (*MockMyService) CallAPI2 ¶
func (m *MockMyService) CallAPI2(data string)
CallAPI2 mocks base method.
func (*MockMyService) CallAPI3 ¶
func (m *MockMyService) CallAPI3(data string)
CallAPI3 mocks base method.
func (*MockMyService) CallAPI4 ¶
func (m *MockMyService) CallAPI4(data string)
CallAPI4 mocks base method.
func (*MockMyService) ChargeUser ¶
func (m *MockMyService) ChargeUser(email, customerId string, amount int)
ChargeUser mocks base method.
func (*MockMyService) CheckBalance ¶
func (m *MockMyService) CheckBalance(account string, amount int) bool
CheckBalance mocks base method.
func (*MockMyService) CreateCreditMemo ¶
func (m *MockMyService) CreateCreditMemo(account string, amount int, notes string) error
CreateCreditMemo mocks base method.
func (*MockMyService) CreateDebitMemo ¶
func (m *MockMyService) CreateDebitMemo(account string, amount int, notes string) error
CreateDebitMemo mocks base method.
func (*MockMyService) Credit ¶
func (m *MockMyService) Credit(account string, amount int) error
Credit mocks base method.
func (*MockMyService) Debit ¶
func (m *MockMyService) Debit(account string, amount int) error
Debit mocks base method.
func (*MockMyService) EXPECT ¶
func (m *MockMyService) EXPECT() *MockMyServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMyService) SendEmail ¶
func (m *MockMyService) SendEmail(recipient, subject, content string)
SendEmail mocks base method.
func (*MockMyService) UndoCreateCreditMemo ¶
func (m *MockMyService) UndoCreateCreditMemo(account string, amount int, notes string) error
UndoCreateCreditMemo mocks base method.
func (*MockMyService) UndoCreateDebitMemo ¶
func (m *MockMyService) UndoCreateDebitMemo(account string, amount int, notes string) error
UndoCreateDebitMemo mocks base method.
func (*MockMyService) UndoCredit ¶
func (m *MockMyService) UndoCredit(account string, amount int) error
UndoCredit mocks base method.
func (*MockMyService) UndoDebit ¶
func (m *MockMyService) UndoDebit(account string, amount int) error
UndoDebit mocks base method.
func (*MockMyService) UpdateExternalSystem ¶
func (m *MockMyService) UpdateExternalSystem(message string)
UpdateExternalSystem mocks base method.
type MockMyServiceMockRecorder ¶
type MockMyServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockMyServiceMockRecorder is the mock recorder for MockMyService.
func (*MockMyServiceMockRecorder) CallAPI1 ¶
func (mr *MockMyServiceMockRecorder) CallAPI1(data interface{}) *gomock.Call
CallAPI1 indicates an expected call of CallAPI1.
func (*MockMyServiceMockRecorder) CallAPI2 ¶
func (mr *MockMyServiceMockRecorder) CallAPI2(data interface{}) *gomock.Call
CallAPI2 indicates an expected call of CallAPI2.
func (*MockMyServiceMockRecorder) CallAPI3 ¶
func (mr *MockMyServiceMockRecorder) CallAPI3(data interface{}) *gomock.Call
CallAPI3 indicates an expected call of CallAPI3.
func (*MockMyServiceMockRecorder) CallAPI4 ¶
func (mr *MockMyServiceMockRecorder) CallAPI4(data interface{}) *gomock.Call
CallAPI4 indicates an expected call of CallAPI4.
func (*MockMyServiceMockRecorder) ChargeUser ¶
func (mr *MockMyServiceMockRecorder) ChargeUser(email, customerId, amount interface{}) *gomock.Call
ChargeUser indicates an expected call of ChargeUser.
func (*MockMyServiceMockRecorder) CheckBalance ¶
func (mr *MockMyServiceMockRecorder) CheckBalance(account, amount interface{}) *gomock.Call
CheckBalance indicates an expected call of CheckBalance.
func (*MockMyServiceMockRecorder) CreateCreditMemo ¶
func (mr *MockMyServiceMockRecorder) CreateCreditMemo(account, amount, notes interface{}) *gomock.Call
CreateCreditMemo indicates an expected call of CreateCreditMemo.
func (*MockMyServiceMockRecorder) CreateDebitMemo ¶
func (mr *MockMyServiceMockRecorder) CreateDebitMemo(account, amount, notes interface{}) *gomock.Call
CreateDebitMemo indicates an expected call of CreateDebitMemo.
func (*MockMyServiceMockRecorder) Credit ¶
func (mr *MockMyServiceMockRecorder) Credit(account, amount interface{}) *gomock.Call
Credit indicates an expected call of Credit.
func (*MockMyServiceMockRecorder) Debit ¶
func (mr *MockMyServiceMockRecorder) Debit(account, amount interface{}) *gomock.Call
Debit indicates an expected call of Debit.
func (*MockMyServiceMockRecorder) SendEmail ¶
func (mr *MockMyServiceMockRecorder) SendEmail(recipient, subject, content interface{}) *gomock.Call
SendEmail indicates an expected call of SendEmail.
func (*MockMyServiceMockRecorder) UndoCreateCreditMemo ¶
func (mr *MockMyServiceMockRecorder) UndoCreateCreditMemo(account, amount, notes interface{}) *gomock.Call
UndoCreateCreditMemo indicates an expected call of UndoCreateCreditMemo.
func (*MockMyServiceMockRecorder) UndoCreateDebitMemo ¶
func (mr *MockMyServiceMockRecorder) UndoCreateDebitMemo(account, amount, notes interface{}) *gomock.Call
UndoCreateDebitMemo indicates an expected call of UndoCreateDebitMemo.
func (*MockMyServiceMockRecorder) UndoCredit ¶
func (mr *MockMyServiceMockRecorder) UndoCredit(account, amount interface{}) *gomock.Call
UndoCredit indicates an expected call of UndoCredit.
func (*MockMyServiceMockRecorder) UndoDebit ¶
func (mr *MockMyServiceMockRecorder) UndoDebit(account, amount interface{}) *gomock.Call
UndoDebit indicates an expected call of UndoDebit.
func (*MockMyServiceMockRecorder) UpdateExternalSystem ¶
func (mr *MockMyServiceMockRecorder) UpdateExternalSystem(message interface{}) *gomock.Call
UpdateExternalSystem indicates an expected call of UpdateExternalSystem.
type MyService ¶
type MyService interface { SendEmail(recipient, subject, content string) ChargeUser(email, customerId string, amount int) UpdateExternalSystem(message string) CallAPI1(data string) CallAPI2(data string) CallAPI3(data string) CallAPI4(data string) CheckBalance(account string, amount int) bool Debit(account string, amount int) error Credit(account string, amount int) error CreateDebitMemo(account string, amount int, notes string) error CreateCreditMemo(account string, amount int, notes string) error UndoDebit(account string, amount int) error UndoCredit(account string, amount int) error UndoCreateDebitMemo(account string, amount int, notes string) error UndoCreateCreditMemo(account string, amount int, notes string) error }
func NewMyService ¶
func NewMyService() MyService