Documentation ¶
Overview ¶
Package mock_application is a generated GoMock package.
Index ¶
- type MockProductInterface
- func (m *MockProductInterface) ChangePrice(price float64) error
- 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) ChangePrice(price interface{}) *gomock.Call
- 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 MockProductPersistenceInterface
- func (m *MockProductPersistenceInterface) EXPECT() *MockProductPersistenceInterfaceMockRecorder
- func (m *MockProductPersistenceInterface) Get(id string) (application.ProductInterface, error)
- func (m *MockProductPersistenceInterface) Save(product application.ProductInterface) (application.ProductInterface, error)
- type MockProductPersistenceInterfaceMockRecorder
- 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) ChangePrice ¶
func (m *MockProductInterface) ChangePrice(price float64) error
ChangePrice mocks base method.
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) ChangePrice ¶
func (mr *MockProductInterfaceMockRecorder) ChangePrice(price interface{}) *gomock.Call
ChangePrice indicates an expected call of ChangePrice.
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 MockProductPersistenceInterface ¶
type MockProductPersistenceInterface struct {
// contains filtered or unexported fields
}
MockProductPersistenceInterface is a mock of ProductPersistenceInterface interface.
func NewMockProductPersistenceInterface ¶
func NewMockProductPersistenceInterface(ctrl *gomock.Controller) *MockProductPersistenceInterface
NewMockProductPersistenceInterface creates a new mock instance.
func (*MockProductPersistenceInterface) EXPECT ¶
func (m *MockProductPersistenceInterface) EXPECT() *MockProductPersistenceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductPersistenceInterface) Get ¶
func (m *MockProductPersistenceInterface) Get(id string) (application.ProductInterface, error)
Get mocks base method.
func (*MockProductPersistenceInterface) Save ¶
func (m *MockProductPersistenceInterface) Save(product application.ProductInterface) (application.ProductInterface, error)
Save mocks base method.
type MockProductPersistenceInterfaceMockRecorder ¶
type MockProductPersistenceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockProductPersistenceInterfaceMockRecorder is the mock recorder for MockProductPersistenceInterface.
func (*MockProductPersistenceInterfaceMockRecorder) Get ¶
func (mr *MockProductPersistenceInterfaceMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockProductPersistenceInterfaceMockRecorder) Save ¶
func (mr *MockProductPersistenceInterfaceMockRecorder) 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.