Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockRedisRepository
- func (m *MockRedisRepository) DeleteItemCtx(ctx context.Context, key string) error
- func (m *MockRedisRepository) EXPECT() *MockRedisRepositoryMockRecorder
- func (m *MockRedisRepository) GetByIDCtx(ctx context.Context, key string) (*models.InventoryItem, error)
- func (m *MockRedisRepository) SetItemCtx(ctx context.Context, key string, seconds int, item *models.InventoryItem) error
- type MockRedisRepositoryMockRecorder
- type MockUseCase
- func (m *MockUseCase) AddItem(ctx context.Context, item *models.InventoryItem) (*models.InventoryItem, error)
- func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder
- func (m *MockUseCase) GetItemByID(ctx context.Context, item uuid.UUID) (*models.InventoryItem, error)
- func (m *MockUseCase) RemoveItem(ctx context.Context, item *models.InventoryItem) (*models.InventoryItem, error)
- type MockUseCaseMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRedisRepository ¶
type MockRedisRepository struct {
// contains filtered or unexported fields
}
MockRedisRepository is a mock of RedisRepository interface.
func NewMockRedisRepository ¶
func NewMockRedisRepository(ctrl *gomock.Controller) *MockRedisRepository
NewMockRedisRepository creates a new mock instance.
func (*MockRedisRepository) DeleteItemCtx ¶
func (m *MockRedisRepository) DeleteItemCtx(ctx context.Context, key string) error
DeleteUserCtx mocks base method.
func (*MockRedisRepository) EXPECT ¶
func (m *MockRedisRepository) EXPECT() *MockRedisRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRedisRepository) GetByIDCtx ¶
func (m *MockRedisRepository) GetByIDCtx(ctx context.Context, key string) (*models.InventoryItem, error)
GetByIDCtx mocks base method.
func (*MockRedisRepository) SetItemCtx ¶
func (m *MockRedisRepository) SetItemCtx(ctx context.Context, key string, seconds int, item *models.InventoryItem) error
SetUserCtx mocks base method.
type MockRedisRepositoryMockRecorder ¶
type MockRedisRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisRepositoryMockRecorder is the mock recorder for MockRedisRepository.
func (*MockRedisRepositoryMockRecorder) DeleteUserCtx ¶
func (mr *MockRedisRepositoryMockRecorder) DeleteUserCtx(ctx, key interface{}) *gomock.Call
DeleteUserCtx indicates an expected call of DeleteUserCtx.
func (*MockRedisRepositoryMockRecorder) GetByIDCtx ¶
func (mr *MockRedisRepositoryMockRecorder) GetByIDCtx(ctx, key interface{}) *gomock.Call
GetByIDCtx indicates an expected call of GetByIDCtx.
func (*MockRedisRepositoryMockRecorder) SetUserCtx ¶
func (mr *MockRedisRepositoryMockRecorder) SetUserCtx(ctx, key, seconds, item interface{}) *gomock.Call
SetUserCtx indicates an expected call of SetUserCtx.
type MockUseCase ¶
type MockUseCase struct {
// contains filtered or unexported fields
}
MockUseCase is a mock of UseCase interface.
func NewMockUseCase ¶
func NewMockUseCase(ctrl *gomock.Controller) *MockUseCase
NewMockUseCase creates a new mock instance.
func (*MockUseCase) AddItem ¶
func (m *MockUseCase) AddItem(ctx context.Context, item *models.InventoryItem) (*models.InventoryItem, error)
AddItem mocks base method.
func (*MockUseCase) EXPECT ¶
func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUseCase) GetItemByID ¶
func (m *MockUseCase) GetItemByID(ctx context.Context, item uuid.UUID) (*models.InventoryItem, error)
GetItemByID mocks base method.
func (*MockUseCase) RemoveItem ¶
func (m *MockUseCase) RemoveItem(ctx context.Context, item *models.InventoryItem) (*models.InventoryItem, error)
RemoveItem mocks base method.
type MockUseCaseMockRecorder ¶
type MockUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUseCaseMockRecorder is the mock recorder for MockUseCase.
func (*MockUseCaseMockRecorder) AddItem ¶
func (mr *MockUseCaseMockRecorder) AddItem(ctx, item interface{}) *gomock.Call
AddItem indicates an expected call of AddItem.
func (*MockUseCaseMockRecorder) GetItemByID ¶
func (mr *MockUseCaseMockRecorder) GetItemByID(ctx, item interface{}) *gomock.Call
GetItemByID indicates an expected call of GetItemByID.
func (*MockUseCaseMockRecorder) RemoveItem ¶
func (mr *MockUseCaseMockRecorder) RemoveItem(ctx, item interface{}) *gomock.Call
RemoveItem indicates an expected call of RemoveItem.