Documentation ¶
Overview ¶
Package mockproduct is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Create(ctx context.Context, entity *product.Product) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Load(ctx context.Context, id string) (*product.Product, error)
- func (m *MockRepository) Update(ctx context.Context, id string, entity *product.Product) error
- type MockRepositoryMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, entity interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockRepositoryMockRecorder) Load ¶
func (mr *MockRepositoryMockRecorder) Load(ctx, id interface{}) *gomock.Call
Load indicates an expected call of Load
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, id, entity interface{}) *gomock.Call
Update indicates an expected call of Update
Click to show internal directories.
Click to hide internal directories.