Documentation
¶
Overview ¶
Package mock_application is a generated GoMock package.
Index ¶
- type MockIProduct
- func (m *MockIProduct) Disable() error
- func (m *MockIProduct) EXPECT() *MockIProductMockRecorder
- func (m *MockIProduct) Enable() error
- func (m *MockIProduct) GetID() string
- func (m *MockIProduct) GetName() string
- func (m *MockIProduct) GetPrice() float64
- func (m *MockIProduct) GetStatus() string
- func (m *MockIProduct) IsValid() (bool, error)
- type MockIProductMockRecorder
- func (mr *MockIProductMockRecorder) Disable() *gomock.Call
- func (mr *MockIProductMockRecorder) Enable() *gomock.Call
- func (mr *MockIProductMockRecorder) GetID() *gomock.Call
- func (mr *MockIProductMockRecorder) GetName() *gomock.Call
- func (mr *MockIProductMockRecorder) GetPrice() *gomock.Call
- func (mr *MockIProductMockRecorder) GetStatus() *gomock.Call
- func (mr *MockIProductMockRecorder) IsValid() *gomock.Call
- type MockIProductPersistence
- type MockIProductPersistenceMockRecorder
- type MockIProductReader
- type MockIProductReaderMockRecorder
- type MockIProductService
- func (m *MockIProductService) Create(name string, price float64) (application.IProduct, error)
- func (m *MockIProductService) Disable(product application.IProduct) (application.IProduct, error)
- func (m *MockIProductService) EXPECT() *MockIProductServiceMockRecorder
- func (m *MockIProductService) Enable(product application.IProduct) (application.IProduct, error)
- func (m *MockIProductService) Get(id string) (application.IProduct, error)
- type MockIProductServiceMockRecorder
- func (mr *MockIProductServiceMockRecorder) Create(name, price interface{}) *gomock.Call
- func (mr *MockIProductServiceMockRecorder) Disable(product interface{}) *gomock.Call
- func (mr *MockIProductServiceMockRecorder) Enable(product interface{}) *gomock.Call
- func (mr *MockIProductServiceMockRecorder) Get(id interface{}) *gomock.Call
- type MockIProductWriter
- type MockIProductWriterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIProduct ¶
type MockIProduct struct {
// contains filtered or unexported fields
}
MockIProduct is a mock of IProduct interface.
func NewMockIProduct ¶
func NewMockIProduct(ctrl *gomock.Controller) *MockIProduct
NewMockIProduct creates a new mock instance.
func (*MockIProduct) EXPECT ¶
func (m *MockIProduct) EXPECT() *MockIProductMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIProduct) GetPrice ¶
func (m *MockIProduct) GetPrice() float64
GetPrice mocks base method.
func (*MockIProduct) GetStatus ¶
func (m *MockIProduct) GetStatus() string
GetStatus mocks base method.
func (*MockIProduct) IsValid ¶
func (m *MockIProduct) IsValid() (bool, error)
IsValid mocks base method.
type MockIProductMockRecorder ¶
type MockIProductMockRecorder struct {
// contains filtered or unexported fields
}
MockIProductMockRecorder is the mock recorder for MockIProduct.
func (*MockIProductMockRecorder) Disable ¶
func (mr *MockIProductMockRecorder) Disable() *gomock.Call
Disable indicates an expected call of Disable.
func (*MockIProductMockRecorder) Enable ¶
func (mr *MockIProductMockRecorder) Enable() *gomock.Call
Enable indicates an expected call of Enable.
func (*MockIProductMockRecorder) GetID ¶
func (mr *MockIProductMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockIProductMockRecorder) GetName ¶
func (mr *MockIProductMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockIProductMockRecorder) GetPrice ¶
func (mr *MockIProductMockRecorder) GetPrice() *gomock.Call
GetPrice indicates an expected call of GetPrice.
func (*MockIProductMockRecorder) GetStatus ¶
func (mr *MockIProductMockRecorder) GetStatus() *gomock.Call
GetStatus indicates an expected call of GetStatus.
func (*MockIProductMockRecorder) IsValid ¶
func (mr *MockIProductMockRecorder) IsValid() *gomock.Call
IsValid indicates an expected call of IsValid.
type MockIProductPersistence ¶
type MockIProductPersistence struct {
// contains filtered or unexported fields
}
MockIProductPersistence is a mock of IProductPersistence interface.
func NewMockIProductPersistence ¶
func NewMockIProductPersistence(ctrl *gomock.Controller) *MockIProductPersistence
NewMockIProductPersistence creates a new mock instance.
func (*MockIProductPersistence) EXPECT ¶
func (m *MockIProductPersistence) EXPECT() *MockIProductPersistenceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIProductPersistence) Get ¶
func (m *MockIProductPersistence) Get(id string) (application.IProduct, error)
Get mocks base method.
func (*MockIProductPersistence) Save ¶
func (m *MockIProductPersistence) Save(product application.IProduct) (application.IProduct, error)
Save mocks base method.
type MockIProductPersistenceMockRecorder ¶
type MockIProductPersistenceMockRecorder struct {
// contains filtered or unexported fields
}
MockIProductPersistenceMockRecorder is the mock recorder for MockIProductPersistence.
func (*MockIProductPersistenceMockRecorder) Get ¶
func (mr *MockIProductPersistenceMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockIProductPersistenceMockRecorder) Save ¶
func (mr *MockIProductPersistenceMockRecorder) Save(product interface{}) *gomock.Call
Save indicates an expected call of Save.
type MockIProductReader ¶
type MockIProductReader struct {
// contains filtered or unexported fields
}
MockIProductReader is a mock of IProductReader interface.
func NewMockIProductReader ¶
func NewMockIProductReader(ctrl *gomock.Controller) *MockIProductReader
NewMockIProductReader creates a new mock instance.
func (*MockIProductReader) EXPECT ¶
func (m *MockIProductReader) EXPECT() *MockIProductReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIProductReader) Get ¶
func (m *MockIProductReader) Get(id string) (application.IProduct, error)
Get mocks base method.
type MockIProductReaderMockRecorder ¶
type MockIProductReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockIProductReaderMockRecorder is the mock recorder for MockIProductReader.
func (*MockIProductReaderMockRecorder) Get ¶
func (mr *MockIProductReaderMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockIProductService ¶
type MockIProductService struct {
// contains filtered or unexported fields
}
MockIProductService is a mock of IProductService interface.
func NewMockIProductService ¶
func NewMockIProductService(ctrl *gomock.Controller) *MockIProductService
NewMockIProductService creates a new mock instance.
func (*MockIProductService) Create ¶
func (m *MockIProductService) Create(name string, price float64) (application.IProduct, error)
Create mocks base method.
func (*MockIProductService) Disable ¶
func (m *MockIProductService) Disable(product application.IProduct) (application.IProduct, error)
Disable mocks base method.
func (*MockIProductService) EXPECT ¶
func (m *MockIProductService) EXPECT() *MockIProductServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIProductService) Enable ¶
func (m *MockIProductService) Enable(product application.IProduct) (application.IProduct, error)
Enabled mocks base method.
func (*MockIProductService) Get ¶
func (m *MockIProductService) Get(id string) (application.IProduct, error)
Get mocks base method.
type MockIProductServiceMockRecorder ¶
type MockIProductServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockIProductServiceMockRecorder is the mock recorder for MockIProductService.
func (*MockIProductServiceMockRecorder) Create ¶
func (mr *MockIProductServiceMockRecorder) Create(name, price interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockIProductServiceMockRecorder) Disable ¶
func (mr *MockIProductServiceMockRecorder) Disable(product interface{}) *gomock.Call
Disable indicates an expected call of Disable.
func (*MockIProductServiceMockRecorder) Enable ¶
func (mr *MockIProductServiceMockRecorder) Enable(product interface{}) *gomock.Call
Enabled indicates an expected call of Enabled.
func (*MockIProductServiceMockRecorder) Get ¶
func (mr *MockIProductServiceMockRecorder) Get(id interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockIProductWriter ¶
type MockIProductWriter struct {
// contains filtered or unexported fields
}
MockIProductWriter is a mock of IProductWriter interface.
func NewMockIProductWriter ¶
func NewMockIProductWriter(ctrl *gomock.Controller) *MockIProductWriter
NewMockIProductWriter creates a new mock instance.
func (*MockIProductWriter) EXPECT ¶
func (m *MockIProductWriter) EXPECT() *MockIProductWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIProductWriter) Save ¶
func (m *MockIProductWriter) Save(product application.IProduct) (application.IProduct, error)
Save mocks base method.
type MockIProductWriterMockRecorder ¶
type MockIProductWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockIProductWriterMockRecorder is the mock recorder for MockIProductWriter.
func (*MockIProductWriterMockRecorder) Save ¶
func (mr *MockIProductWriterMockRecorder) Save(product interface{}) *gomock.Call
Save indicates an expected call of Save.