Documentation
¶
Overview ¶
Package mock_customer is a generated GoMock package.
Package mock_customer is a generated GoMock package.
Index ¶
- type MockCustomerInterface
- func (m *MockCustomerInterface) EXPECT() *MockCustomerInterfaceMockRecorder
- func (m *MockCustomerInterface) GetBirth() string
- func (m *MockCustomerInterface) GetCpf() string
- func (m *MockCustomerInterface) GetID() string
- func (m *MockCustomerInterface) GetName() string
- func (m *MockCustomerInterface) IsValid() (bool, error)
- type MockCustomerInterfaceMockRecorder
- func (mr *MockCustomerInterfaceMockRecorder) GetBirth() *gomock.Call
- func (mr *MockCustomerInterfaceMockRecorder) GetCpf() *gomock.Call
- func (mr *MockCustomerInterfaceMockRecorder) GetID() *gomock.Call
- func (mr *MockCustomerInterfaceMockRecorder) GetName() *gomock.Call
- func (mr *MockCustomerInterfaceMockRecorder) IsValid() *gomock.Call
- type MockCustomerServiceInterface
- func (m *MockCustomerServiceInterface) Create(name, cpf, birth string) (customers.CustomerInterface, error)
- func (m *MockCustomerServiceInterface) EXPECT() *MockCustomerServiceInterfaceMockRecorder
- func (m *MockCustomerServiceInterface) FindCustomerByCpf(id string) (customers.CustomerInterface, error)
- type MockCustomerServiceInterfaceMockRecorder
- type MockCustomerStoreInterface
- type MockCustomerStoreInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCustomerInterface ¶
type MockCustomerInterface struct {
// contains filtered or unexported fields
}
MockCustomerInterface is a mock of CustomerInterface interface.
func NewMockCustomerInterface ¶
func NewMockCustomerInterface(ctrl *gomock.Controller) *MockCustomerInterface
NewMockCustomerInterface creates a new mock instance.
func (*MockCustomerInterface) EXPECT ¶
func (m *MockCustomerInterface) EXPECT() *MockCustomerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCustomerInterface) GetBirth ¶
func (m *MockCustomerInterface) GetBirth() string
GetBirth mocks base method.
func (*MockCustomerInterface) GetCpf ¶
func (m *MockCustomerInterface) GetCpf() string
GetCpf mocks base method.
func (*MockCustomerInterface) GetID ¶
func (m *MockCustomerInterface) GetID() string
GetID mocks base method.
func (*MockCustomerInterface) GetName ¶
func (m *MockCustomerInterface) GetName() string
GetName mocks base method.
func (*MockCustomerInterface) IsValid ¶
func (m *MockCustomerInterface) IsValid() (bool, error)
IsValid mocks base method.
type MockCustomerInterfaceMockRecorder ¶
type MockCustomerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCustomerInterfaceMockRecorder is the mock recorder for MockCustomerInterface.
func (*MockCustomerInterfaceMockRecorder) GetBirth ¶
func (mr *MockCustomerInterfaceMockRecorder) GetBirth() *gomock.Call
GetBirth indicates an expected call of GetBirth.
func (*MockCustomerInterfaceMockRecorder) GetCpf ¶
func (mr *MockCustomerInterfaceMockRecorder) GetCpf() *gomock.Call
GetCpf indicates an expected call of GetCpf.
func (*MockCustomerInterfaceMockRecorder) GetID ¶
func (mr *MockCustomerInterfaceMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockCustomerInterfaceMockRecorder) GetName ¶
func (mr *MockCustomerInterfaceMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockCustomerInterfaceMockRecorder) IsValid ¶
func (mr *MockCustomerInterfaceMockRecorder) IsValid() *gomock.Call
IsValid indicates an expected call of IsValid.
type MockCustomerServiceInterface ¶
type MockCustomerServiceInterface struct {
// contains filtered or unexported fields
}
MockCustomerServiceInterface is a mock of CustomerServiceInterface interface.
func NewMockCustomerServiceInterface ¶
func NewMockCustomerServiceInterface(ctrl *gomock.Controller) *MockCustomerServiceInterface
NewMockCustomerServiceInterface creates a new mock instance.
func (*MockCustomerServiceInterface) Create ¶
func (m *MockCustomerServiceInterface) Create(name, cpf, birth string) (customers.CustomerInterface, error)
Create mocks base method.
func (*MockCustomerServiceInterface) EXPECT ¶
func (m *MockCustomerServiceInterface) EXPECT() *MockCustomerServiceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCustomerServiceInterface) FindCustomerByCpf ¶
func (m *MockCustomerServiceInterface) FindCustomerByCpf(id string) (customers.CustomerInterface, error)
FindCustomerByCpf mocks base method.
type MockCustomerServiceInterfaceMockRecorder ¶
type MockCustomerServiceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCustomerServiceInterfaceMockRecorder is the mock recorder for MockCustomerServiceInterface.
func (*MockCustomerServiceInterfaceMockRecorder) Create ¶
func (mr *MockCustomerServiceInterfaceMockRecorder) Create(name, cpf, birth interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockCustomerServiceInterfaceMockRecorder) FindCustomerByCpf ¶
func (mr *MockCustomerServiceInterfaceMockRecorder) FindCustomerByCpf(id interface{}) *gomock.Call
FindCustomerByCpf indicates an expected call of FindCustomerByCpf.
type MockCustomerStoreInterface ¶
type MockCustomerStoreInterface struct {
// contains filtered or unexported fields
}
MockCustomerStoreInterface is a mock of CustomerStoreInterface interface.
func NewMockCustomerStoreInterface ¶
func NewMockCustomerStoreInterface(ctrl *gomock.Controller) *MockCustomerStoreInterface
NewMockCustomerStoreInterface creates a new mock instance.
func (*MockCustomerStoreInterface) EXPECT ¶
func (m *MockCustomerStoreInterface) EXPECT() *MockCustomerStoreInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCustomerStoreInterface) FindByCpf ¶
func (m *MockCustomerStoreInterface) FindByCpf(cpf string) (customers.CustomerInterface, error)
FindByCpf mocks base method.
func (*MockCustomerStoreInterface) Save ¶
func (m *MockCustomerStoreInterface) Save(customer customers.CustomerInterface) (customers.CustomerInterface, error)
Save mocks base method.
type MockCustomerStoreInterfaceMockRecorder ¶
type MockCustomerStoreInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCustomerStoreInterfaceMockRecorder is the mock recorder for MockCustomerStoreInterface.
func (*MockCustomerStoreInterfaceMockRecorder) FindByCpf ¶
func (mr *MockCustomerStoreInterfaceMockRecorder) FindByCpf(cpf interface{}) *gomock.Call
FindByCpf indicates an expected call of FindByCpf.
func (*MockCustomerStoreInterfaceMockRecorder) Save ¶
func (mr *MockCustomerStoreInterfaceMockRecorder) Save(customer interface{}) *gomock.Call
Save indicates an expected call of Save.