Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockURLRepository
- func (m *MockURLRepository) Delete(ctx context.Context, id string) error
- func (m *MockURLRepository) EXPECT() *MockURLRepositoryMockRecorder
- func (m *MockURLRepository) GetByID(ctx context.Context, id string) (*domain.URL, error)
- func (m *MockURLRepository) Store(ctx context.Context, u *domain.URL) error
- func (m *MockURLRepository) Update(ctx context.Context, url *domain.URL) error
- type MockURLRepositoryMockRecorder
- func (mr *MockURLRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockURLRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockURLRepositoryMockRecorder) Store(ctx, u interface{}) *gomock.Call
- func (mr *MockURLRepositoryMockRecorder) Update(ctx, url interface{}) *gomock.Call
- type MockURLUsecase
- func (m *MockURLUsecase) Delete(ctx context.Context, id string, user *auth.Claims) error
- func (m *MockURLUsecase) EXPECT() *MockURLUsecaseMockRecorder
- func (m *MockURLUsecase) GetByID(ctx context.Context, id string) (*domain.URL, error)
- func (m *MockURLUsecase) Store(ctx context.Context, createURL domain.CreateURL) (*domain.URL, error)
- func (m *MockURLUsecase) Update(ctx context.Context, updateURL domain.UpdateURL, user *auth.Claims) error
- type MockURLUsecaseMockRecorder
- func (mr *MockURLUsecaseMockRecorder) Delete(ctx, id, user interface{}) *gomock.Call
- func (mr *MockURLUsecaseMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockURLUsecaseMockRecorder) Store(ctx, createURL interface{}) *gomock.Call
- func (mr *MockURLUsecaseMockRecorder) Update(ctx, updateURL, user interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockURLRepository ¶
type MockURLRepository struct {
// contains filtered or unexported fields
}
MockURLRepository is a mock of URLRepository interface.
func NewMockURLRepository ¶
func NewMockURLRepository(ctrl *gomock.Controller) *MockURLRepository
NewMockURLRepository creates a new mock instance.
func (*MockURLRepository) Delete ¶
func (m *MockURLRepository) Delete(ctx context.Context, id string) error
Delete mocks base method.
func (*MockURLRepository) EXPECT ¶
func (m *MockURLRepository) EXPECT() *MockURLRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockURLRepositoryMockRecorder ¶
type MockURLRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockURLRepositoryMockRecorder is the mock recorder for MockURLRepository.
func (*MockURLRepositoryMockRecorder) Delete ¶
func (mr *MockURLRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockURLRepositoryMockRecorder) GetByID ¶
func (mr *MockURLRepositoryMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockURLRepositoryMockRecorder) Store ¶
func (mr *MockURLRepositoryMockRecorder) Store(ctx, u interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockURLRepositoryMockRecorder) Update ¶
func (mr *MockURLRepositoryMockRecorder) Update(ctx, url interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockURLUsecase ¶
type MockURLUsecase struct {
// contains filtered or unexported fields
}
MockURLUsecase is a mock of URLUsecase interface.
func NewMockURLUsecase ¶
func NewMockURLUsecase(ctrl *gomock.Controller) *MockURLUsecase
NewMockURLUsecase creates a new mock instance.
func (*MockURLUsecase) EXPECT ¶
func (m *MockURLUsecase) EXPECT() *MockURLUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockURLUsecaseMockRecorder ¶
type MockURLUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockURLUsecaseMockRecorder is the mock recorder for MockURLUsecase.
func (*MockURLUsecaseMockRecorder) Delete ¶
func (mr *MockURLUsecaseMockRecorder) Delete(ctx, id, user interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockURLUsecaseMockRecorder) GetByID ¶
func (mr *MockURLUsecaseMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockURLUsecaseMockRecorder) Store ¶
func (mr *MockURLUsecaseMockRecorder) Store(ctx, createURL interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockURLUsecaseMockRecorder) Update ¶
func (mr *MockURLUsecaseMockRecorder) Update(ctx, updateURL, user interface{}) *gomock.Call
Update indicates an expected call of Update.