Documentation
¶
Overview ¶
Package mock_usecase is a generated GoMock package.
Index ¶
- type MockGenerator
- type MockGeneratorMockRecorder
- type MockLinkRepository
- func (m *MockLinkRepository) EXPECT() *MockLinkRepositoryMockRecorder
- func (m *MockLinkRepository) GetLink(ctx context.Context, token string) (*model.Link, error)
- func (m *MockLinkRepository) GetLinkByOriginal(ctx context.Context, origLink string) (*model.Link, error)
- func (m *MockLinkRepository) StartRecalculation(interval time.Duration, deleted chan []string)
- func (m *MockLinkRepository) StoreLink(ctx context.Context, link *model.Link) error
- type MockLinkRepositoryMockRecorder
- func (mr *MockLinkRepositoryMockRecorder) GetLink(ctx, token interface{}) *gomock.Call
- func (mr *MockLinkRepositoryMockRecorder) GetLinkByOriginal(ctx, origLink interface{}) *gomock.Call
- func (mr *MockLinkRepositoryMockRecorder) StartRecalculation(interval, deleted interface{}) *gomock.Call
- func (mr *MockLinkRepositoryMockRecorder) StoreLink(ctx, link interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGenerator ¶
type MockGenerator struct {
// contains filtered or unexported fields
}
MockGenerator is a mock of Generator interface.
func NewMockGenerator ¶
func NewMockGenerator(ctrl *gomock.Controller) *MockGenerator
NewMockGenerator creates a new mock instance.
func (*MockGenerator) EXPECT ¶
func (m *MockGenerator) EXPECT() *MockGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGenerator) GenerateShortURL ¶
func (m *MockGenerator) GenerateShortURL(url string) string
GenerateShortURL mocks base method.
type MockGeneratorMockRecorder ¶
type MockGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockGeneratorMockRecorder is the mock recorder for MockGenerator.
func (*MockGeneratorMockRecorder) GenerateShortURL ¶
func (mr *MockGeneratorMockRecorder) GenerateShortURL(url interface{}) *gomock.Call
GenerateShortURL indicates an expected call of GenerateShortURL.
type MockLinkRepository ¶
type MockLinkRepository struct {
// contains filtered or unexported fields
}
MockLinkRepository is a mock of LinkRepository interface.
func NewMockLinkRepository ¶
func NewMockLinkRepository(ctrl *gomock.Controller) *MockLinkRepository
NewMockLinkRepository creates a new mock instance.
func (*MockLinkRepository) EXPECT ¶
func (m *MockLinkRepository) EXPECT() *MockLinkRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLinkRepository) GetLinkByOriginal ¶
func (m *MockLinkRepository) GetLinkByOriginal(ctx context.Context, origLink string) (*model.Link, error)
GetLinkByOriginal mocks base method.
func (*MockLinkRepository) StartRecalculation ¶
func (m *MockLinkRepository) StartRecalculation(interval time.Duration, deleted chan []string)
StartRecalculation mocks base method.
type MockLinkRepositoryMockRecorder ¶
type MockLinkRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockLinkRepositoryMockRecorder is the mock recorder for MockLinkRepository.
func (*MockLinkRepositoryMockRecorder) GetLink ¶
func (mr *MockLinkRepositoryMockRecorder) GetLink(ctx, token interface{}) *gomock.Call
GetLink indicates an expected call of GetLink.
func (*MockLinkRepositoryMockRecorder) GetLinkByOriginal ¶
func (mr *MockLinkRepositoryMockRecorder) GetLinkByOriginal(ctx, origLink interface{}) *gomock.Call
GetLinkByOriginal indicates an expected call of GetLinkByOriginal.
func (*MockLinkRepositoryMockRecorder) StartRecalculation ¶
func (mr *MockLinkRepositoryMockRecorder) StartRecalculation(interval, deleted interface{}) *gomock.Call
StartRecalculation indicates an expected call of StartRecalculation.
func (*MockLinkRepositoryMockRecorder) StoreLink ¶
func (mr *MockLinkRepositoryMockRecorder) StoreLink(ctx, link interface{}) *gomock.Call
StoreLink indicates an expected call of StoreLink.