Documentation ¶
Overview ¶
Package mock_application is a generated GoMock package.
Index ¶
- type MockProductInterface
- func (m *MockProductInterface) Disable() error
- func (m *MockProductInterface) EXPECT() *MockProductInterfaceMockRecorder
- func (m *MockProductInterface) Enable() error
- func (m *MockProductInterface) GetId() string
- func (m *MockProductInterface) GetName() string
- func (m *MockProductInterface) GetPrice() float64
- func (m *MockProductInterface) GetStatus() string
- func (m *MockProductInterface) IsValid() (bool, error)
- type MockProductInterfaceMockRecorder
- func (mr *MockProductInterfaceMockRecorder) Disable() *gomock.Call
- func (mr *MockProductInterfaceMockRecorder) Enable() *gomock.Call
- func (mr *MockProductInterfaceMockRecorder) GetId() *gomock.Call
- func (mr *MockProductInterfaceMockRecorder) GetName() *gomock.Call
- func (mr *MockProductInterfaceMockRecorder) GetPrice() *gomock.Call
- func (mr *MockProductInterfaceMockRecorder) GetStatus() *gomock.Call
- func (mr *MockProductInterfaceMockRecorder) IsValid() *gomock.Call
- type MockProductPersistanceInterface
- func (m *MockProductPersistanceInterface) EXPECT() *MockProductPersistanceInterfaceMockRecorder
- func (m *MockProductPersistanceInterface) Get(id string) (application.ProductInterface, error)
- func (m *MockProductPersistanceInterface) Save(product application.ProductInterface) (application.ProductInterface, error)
- type MockProductPersistanceInterfaceMockRecorder
- type MockProductReader
- type MockProductReaderMockRecorder
- type MockProductServiceInterface
- func (m *MockProductServiceInterface) Create(name string, price float64) (application.ProductInterface, error)
- func (m *MockProductServiceInterface) Disable(product application.ProductInterface) (application.ProductInterface, error)
- func (m *MockProductServiceInterface) EXPECT() *MockProductServiceInterfaceMockRecorder
- func (m *MockProductServiceInterface) Enable(product application.ProductInterface) (application.ProductInterface, error)
- func (m *MockProductServiceInterface) Get(id string) (application.ProductInterface, error)
- type MockProductServiceInterfaceMockRecorder
- func (mr *MockProductServiceInterfaceMockRecorder) Create(name, price interface{}) *gomock.Call
- func (mr *MockProductServiceInterfaceMockRecorder) Disable(product interface{}) *gomock.Call
- func (mr *MockProductServiceInterfaceMockRecorder) Enable(product interface{}) *gomock.Call
- func (mr *MockProductServiceInterfaceMockRecorder) Get(id interface{}) *gomock.Call
- type MockProductWriter
- type MockProductWriterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProductInterface ¶
type MockProductInterface struct {
// contains filtered or unexported fields
}
MockProductInterface is a mock of ProductInterface interface.
func NewMockProductInterface ¶
func NewMockProductInterface(ctrl *gomock.Controller) *MockProductInterface
NewMockProductInterface creates a new mock instance.
func (*MockProductInterface) Disable ¶
func (m *MockProductInterface) Disable() error
Disable mocks base method.
func (*MockProductInterface) EXPECT ¶
func (m *MockProductInterface) EXPECT() *MockProductInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductInterface) Enable ¶
func (m *MockProductInterface) Enable() error
Enable mocks base method.
func (*MockProductInterface) GetId ¶
func (m *MockProductInterface) GetId() string
GetId mocks base method.
func (*MockProductInterface) GetName ¶
func (m *MockProductInterface) GetName() string
GetName mocks base method.
func (*MockProductInterface) GetPrice ¶
func (m *MockProductInterface) GetPrice() float64
GetPrice mocks base method.
func (*MockProductInterface) GetStatus ¶
func (m *MockProductInterface) GetStatus() string
GetStatus mocks base method.
func (*MockProductInterface) IsValid ¶
func (m *MockProductInterface) IsValid() (bool, error)
IsValid mocks base method.
type MockProductInterfaceMockRecorder ¶
type MockProductInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockProductInterfaceMockRecorder is the mock recorder for MockProductInterface.
func (*MockProductInterfaceMockRecorder) Disable ¶
func (mr *MockProductInterfaceMockRecorder) Disable() *gomock.Call
Disable indicates an expected call of Disable.
func (*MockProductInterfaceMockRecorder) Enable ¶
func (mr *MockProductInterfaceMockRecorder) Enable() *gomock.Call
Enable indicates an expected call of Enable.
func (*MockProductInterfaceMockRecorder) GetId ¶
func (mr *MockProductInterfaceMockRecorder) GetId() *gomock.Call
GetId indicates an expected call of GetId.
func (*MockProductInterfaceMockRecorder) GetName ¶
func (mr *MockProductInterfaceMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockProductInterfaceMockRecorder) GetPrice ¶
func (mr *MockProductInterfaceMockRecorder) GetPrice() *gomock.Call
GetPrice indicates an expected call of GetPrice.
func (*MockProductInterfaceMockRecorder) GetStatus ¶
func (mr *MockProductInterfaceMockRecorder) GetStatus() *gomock.Call
GetStatus indicates an expected call of GetStatus.
func (*MockProductInterfaceMockRecorder) IsValid ¶
func (mr *MockProductInterfaceMockRecorder) IsValid() *gomock.Call
IsValid indicates an expected call of IsValid.
type MockProductPersistanceInterface ¶
type MockProductPersistanceInterface struct {
// contains filtered or unexported fields
}
MockProductPersistanceInterface is a mock of ProductPersistanceInterface interface.
func NewMockProductPersistanceInterface ¶
func NewMockProductPersistanceInterface(ctrl *gomock.Controller) *MockProductPersistanceInterface
NewMockProductPersistanceInterface creates a new mock instance.
func (*MockProductPersistanceInterface) EXPECT ¶
func (m *MockProductPersistanceInterface) EXPECT() *MockProductPersistanceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductPersistanceInterface) Get ¶
func (m *MockProductPersistanceInterface) Get(id string) (application.ProductInterface, error)
Get mocks base method.
func (*MockProductPersistanceInterface) Save ¶
func (m *MockProductPersistanceInterface) Save(product application.ProductInterface) (application.ProductInterface, error)
Save mocks base method.
type MockProductPersistanceInterfaceMockRecorder ¶
type MockProductPersistanceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockProductPersistanceInterfaceMockRecorder is the mock recorder for MockProductPersistanceInterface.
func (*MockProductPersistanceInterfaceMockRecorder) Get ¶
func (mr *MockProductPersistanceInterfaceMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockProductPersistanceInterfaceMockRecorder) Save ¶
func (mr *MockProductPersistanceInterfaceMockRecorder) Save(product interface{}) *gomock.Call
Save indicates an expected call of Save.
type MockProductReader ¶
type MockProductReader struct {
// contains filtered or unexported fields
}
MockProductReader is a mock of ProductReader interface.
func NewMockProductReader ¶
func NewMockProductReader(ctrl *gomock.Controller) *MockProductReader
NewMockProductReader creates a new mock instance.
func (*MockProductReader) EXPECT ¶
func (m *MockProductReader) EXPECT() *MockProductReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductReader) Get ¶
func (m *MockProductReader) Get(id string) (application.ProductInterface, error)
Get mocks base method.
type MockProductReaderMockRecorder ¶
type MockProductReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockProductReaderMockRecorder is the mock recorder for MockProductReader.
func (*MockProductReaderMockRecorder) Get ¶
func (mr *MockProductReaderMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockProductServiceInterface ¶
type MockProductServiceInterface struct {
// contains filtered or unexported fields
}
MockProductServiceInterface is a mock of ProductServiceInterface interface.
func NewMockProductServiceInterface ¶
func NewMockProductServiceInterface(ctrl *gomock.Controller) *MockProductServiceInterface
NewMockProductServiceInterface creates a new mock instance.
func (*MockProductServiceInterface) Create ¶
func (m *MockProductServiceInterface) Create(name string, price float64) (application.ProductInterface, error)
Create mocks base method.
func (*MockProductServiceInterface) Disable ¶
func (m *MockProductServiceInterface) Disable(product application.ProductInterface) (application.ProductInterface, error)
Disable mocks base method.
func (*MockProductServiceInterface) EXPECT ¶
func (m *MockProductServiceInterface) EXPECT() *MockProductServiceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductServiceInterface) Enable ¶
func (m *MockProductServiceInterface) Enable(product application.ProductInterface) (application.ProductInterface, error)
Enable mocks base method.
func (*MockProductServiceInterface) Get ¶
func (m *MockProductServiceInterface) Get(id string) (application.ProductInterface, error)
Get mocks base method.
type MockProductServiceInterfaceMockRecorder ¶
type MockProductServiceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockProductServiceInterfaceMockRecorder is the mock recorder for MockProductServiceInterface.
func (*MockProductServiceInterfaceMockRecorder) Create ¶
func (mr *MockProductServiceInterfaceMockRecorder) Create(name, price interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockProductServiceInterfaceMockRecorder) Disable ¶
func (mr *MockProductServiceInterfaceMockRecorder) Disable(product interface{}) *gomock.Call
Disable indicates an expected call of Disable.
func (*MockProductServiceInterfaceMockRecorder) Enable ¶
func (mr *MockProductServiceInterfaceMockRecorder) Enable(product interface{}) *gomock.Call
Enable indicates an expected call of Enable.
func (*MockProductServiceInterfaceMockRecorder) Get ¶
func (mr *MockProductServiceInterfaceMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockProductWriter ¶
type MockProductWriter struct {
// contains filtered or unexported fields
}
MockProductWriter is a mock of ProductWriter interface.
func NewMockProductWriter ¶
func NewMockProductWriter(ctrl *gomock.Controller) *MockProductWriter
NewMockProductWriter creates a new mock instance.
func (*MockProductWriter) EXPECT ¶
func (m *MockProductWriter) EXPECT() *MockProductWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductWriter) Save ¶
func (m *MockProductWriter) Save(product application.ProductInterface) (application.ProductInterface, error)
Save mocks base method.
type MockProductWriterMockRecorder ¶
type MockProductWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockProductWriterMockRecorder is the mock recorder for MockProductWriter.
func (*MockProductWriterMockRecorder) Save ¶
func (mr *MockProductWriterMockRecorder) Save(product interface{}) *gomock.Call
Save indicates an expected call of Save.