Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Index ¶
- type MockURLShortenerService
- func (m *MockURLShortenerService) Close() error
- func (m *MockURLShortenerService) Delete(ctx context.Context, user *uuid.UUID, ids []string)
- func (m *MockURLShortenerService) EXPECT() *MockURLShortenerServiceMockRecorder
- func (m *MockURLShortenerService) GetUserStorage(ctx context.Context, user *uuid.UUID, defURL string) (map[string]string, error)
- func (m *MockURLShortenerService) Ping(arg0 context.Context) error
- func (m *MockURLShortenerService) Restore(ctx context.Context, id string) (string, error)
- func (m *MockURLShortenerService) Statistics(ctx context.Context) (*models.Statistic, error)
- func (m *MockURLShortenerService) Store(ctx context.Context, user *uuid.UUID, longURL string) (string, error)
- func (m *MockURLShortenerService) StoreBatch(ctx context.Context, user *uuid.UUID, batchIn models.BatchList, defURL string) (models.BatchList, error)
- type MockURLShortenerServiceMockRecorder
- func (mr *MockURLShortenerServiceMockRecorder) Close() *gomock.Call
- func (mr *MockURLShortenerServiceMockRecorder) Delete(ctx, user, ids interface{}) *gomock.Call
- func (mr *MockURLShortenerServiceMockRecorder) GetUserStorage(ctx, user, defURL interface{}) *gomock.Call
- func (mr *MockURLShortenerServiceMockRecorder) Ping(arg0 interface{}) *gomock.Call
- func (mr *MockURLShortenerServiceMockRecorder) Restore(ctx, id interface{}) *gomock.Call
- func (mr *MockURLShortenerServiceMockRecorder) Statistics(ctx interface{}) *gomock.Call
- func (mr *MockURLShortenerServiceMockRecorder) Store(ctx, user, longURL interface{}) *gomock.Call
- func (mr *MockURLShortenerServiceMockRecorder) StoreBatch(ctx, user, batchIn, defURL interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockURLShortenerService ¶
type MockURLShortenerService struct {
// contains filtered or unexported fields
}
MockURLShortenerService is a mock of URLShortenerService interface.
func NewMockURLShortenerService ¶
func NewMockURLShortenerService(ctrl *gomock.Controller) *MockURLShortenerService
NewMockURLShortenerService creates a new mock instance.
func (*MockURLShortenerService) Close ¶
func (m *MockURLShortenerService) Close() error
Close mocks base method.
func (*MockURLShortenerService) EXPECT ¶
func (m *MockURLShortenerService) EXPECT() *MockURLShortenerServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockURLShortenerService) GetUserStorage ¶
func (m *MockURLShortenerService) GetUserStorage(ctx context.Context, user *uuid.UUID, defURL string) (map[string]string, error)
GetUserStorage mocks base method.
func (*MockURLShortenerService) Ping ¶
func (m *MockURLShortenerService) Ping(arg0 context.Context) error
Ping mocks base method.
func (*MockURLShortenerService) Statistics ¶
Statistics mocks base method.
type MockURLShortenerServiceMockRecorder ¶
type MockURLShortenerServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockURLShortenerServiceMockRecorder is the mock recorder for MockURLShortenerService.
func (*MockURLShortenerServiceMockRecorder) Close ¶
func (mr *MockURLShortenerServiceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockURLShortenerServiceMockRecorder) Delete ¶
func (mr *MockURLShortenerServiceMockRecorder) Delete(ctx, user, ids interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockURLShortenerServiceMockRecorder) GetUserStorage ¶
func (mr *MockURLShortenerServiceMockRecorder) GetUserStorage(ctx, user, defURL interface{}) *gomock.Call
GetUserStorage indicates an expected call of GetUserStorage.
func (*MockURLShortenerServiceMockRecorder) Ping ¶
func (mr *MockURLShortenerServiceMockRecorder) Ping(arg0 interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockURLShortenerServiceMockRecorder) Restore ¶
func (mr *MockURLShortenerServiceMockRecorder) Restore(ctx, id interface{}) *gomock.Call
Restore indicates an expected call of Restore.
func (*MockURLShortenerServiceMockRecorder) Statistics ¶
func (mr *MockURLShortenerServiceMockRecorder) Statistics(ctx interface{}) *gomock.Call
Statistics indicates an expected call of Statistics.
func (*MockURLShortenerServiceMockRecorder) Store ¶
func (mr *MockURLShortenerServiceMockRecorder) Store(ctx, user, longURL interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockURLShortenerServiceMockRecorder) StoreBatch ¶
func (mr *MockURLShortenerServiceMockRecorder) StoreBatch(ctx, user, batchIn, defURL interface{}) *gomock.Call
StoreBatch indicates an expected call of StoreBatch.