Documentation ¶
Overview ¶
Package mock_ports is a generated GoMock package.
Index ¶
- type MockCacher
- type MockCacherMockRecorder
- type MockRepository
- func (m *MockRepository) Create(ctx context.Context, url domain.URL) error
- func (m *MockRepository) Delete(ctx context.Context, shortURL string) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Find(ctx context.Context, shortURL string) (domain.URL, error)
- type MockRepositoryMockRecorder
- type MockShortURLGenerator
- type MockShortURLGeneratorMockRecorder
- type MockShortenerService
- func (m *MockShortenerService) Create(ctx context.Context, longURL string) (string, error)
- func (m *MockShortenerService) Delete(ctx context.Context, shortURL string) error
- func (m *MockShortenerService) EXPECT() *MockShortenerServiceMockRecorder
- func (m *MockShortenerService) Find(ctx context.Context, shortURL string) (string, error)
- type MockShortenerServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCacher ¶
type MockCacher struct {
// contains filtered or unexported fields
}
MockCacher is a mock of Cacher interface.
func NewMockCacher ¶
func NewMockCacher(ctrl *gomock.Controller) *MockCacher
NewMockCacher creates a new mock instance.
func (*MockCacher) Del ¶
func (m *MockCacher) Del(ctx context.Context, shortURL string) error
Del mocks base method.
func (*MockCacher) EXPECT ¶
func (m *MockCacher) EXPECT() *MockCacherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacherMockRecorder ¶
type MockCacherMockRecorder struct {
// contains filtered or unexported fields
}
MockCacherMockRecorder is the mock recorder for MockCacher.
func (*MockCacherMockRecorder) Del ¶
func (mr *MockCacherMockRecorder) Del(ctx, shortURL interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockCacherMockRecorder) Get ¶
func (mr *MockCacherMockRecorder) Get(ctx, shortURL interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacherMockRecorder) Set ¶
func (mr *MockCacherMockRecorder) Set(ctx, shortURL, longURL interface{}) *gomock.Call
Set indicates an expected call of Set.
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) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, shortURL string) error
Delete mocks base method.
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, url interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, shortURL interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) Find ¶
func (mr *MockRepositoryMockRecorder) Find(ctx, shortURL interface{}) *gomock.Call
Find indicates an expected call of Find.
type MockShortURLGenerator ¶
type MockShortURLGenerator struct {
// contains filtered or unexported fields
}
MockShortURLGenerator is a mock of ShortURLGenerator interface.
func NewMockShortURLGenerator ¶
func NewMockShortURLGenerator(ctrl *gomock.Controller) *MockShortURLGenerator
NewMockShortURLGenerator creates a new mock instance.
func (*MockShortURLGenerator) EXPECT ¶
func (m *MockShortURLGenerator) EXPECT() *MockShortURLGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockShortURLGeneratorMockRecorder ¶
type MockShortURLGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockShortURLGeneratorMockRecorder is the mock recorder for MockShortURLGenerator.
func (*MockShortURLGeneratorMockRecorder) Next ¶
func (mr *MockShortURLGeneratorMockRecorder) Next(ctx interface{}) *gomock.Call
Next indicates an expected call of Next.
type MockShortenerService ¶
type MockShortenerService struct {
// contains filtered or unexported fields
}
MockShortenerService is a mock of ShortenerService interface.
func NewMockShortenerService ¶
func NewMockShortenerService(ctrl *gomock.Controller) *MockShortenerService
NewMockShortenerService creates a new mock instance.
func (*MockShortenerService) Delete ¶
func (m *MockShortenerService) Delete(ctx context.Context, shortURL string) error
Delete mocks base method.
func (*MockShortenerService) EXPECT ¶
func (m *MockShortenerService) EXPECT() *MockShortenerServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockShortenerServiceMockRecorder ¶
type MockShortenerServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockShortenerServiceMockRecorder is the mock recorder for MockShortenerService.
func (*MockShortenerServiceMockRecorder) Create ¶
func (mr *MockShortenerServiceMockRecorder) Create(ctx, longURL interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockShortenerServiceMockRecorder) Delete ¶
func (mr *MockShortenerServiceMockRecorder) Delete(ctx, shortURL interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockShortenerServiceMockRecorder) Find ¶
func (mr *MockShortenerServiceMockRecorder) Find(ctx, shortURL interface{}) *gomock.Call
Find indicates an expected call of Find.