mock

package
v0.0.0-...-01a878b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL