Documentation ¶
Overview ¶
Package mocks 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) Get(ctx context.Context, id string) (string, error)
- func (m *MockUrlRepository) List(ctx context.Context) ([]domain.Url, error)
- func (m *MockUrlRepository) Put(ctx context.Context, url domain.Url) error
- type MockUrlRepositoryMockRecorder
- func (mr *MockUrlRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockUrlRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockUrlRepositoryMockRecorder) List(ctx interface{}) *gomock.Call
- func (mr *MockUrlRepositoryMockRecorder) Put(ctx, url interface{}) *gomock.Call
- type MockUrlUseCase
- func (m *MockUrlUseCase) Create(ctx context.Context, destination string) (domain.Url, error)
- func (m *MockUrlUseCase) CreateWithAlias(ctx context.Context, id, destination string) (domain.Url, error)
- func (m *MockUrlUseCase) Delete(ctx context.Context, id string) error
- func (m *MockUrlUseCase) EXPECT() *MockUrlUseCaseMockRecorder
- func (m *MockUrlUseCase) GetById(ctx context.Context, id string) (domain.Url, error)
- func (m *MockUrlUseCase) List(ctx context.Context) ([]domain.Url, error)
- type MockUrlUseCaseMockRecorder
- func (mr *MockUrlUseCaseMockRecorder) Create(ctx, destination interface{}) *gomock.Call
- func (mr *MockUrlUseCaseMockRecorder) CreateWithId(ctx, id, destination interface{}) *gomock.Call
- func (mr *MockUrlUseCaseMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockUrlUseCaseMockRecorder) GetById(ctx, id interface{}) *gomock.Call
- func (mr *MockUrlUseCaseMockRecorder) List(ctx 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) Get ¶
func (mr *MockUrlRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUrlRepositoryMockRecorder) List ¶
func (mr *MockUrlRepositoryMockRecorder) List(ctx interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockUrlRepositoryMockRecorder) Put ¶
func (mr *MockUrlRepositoryMockRecorder) Put(ctx, url interface{}) *gomock.Call
Put indicates an expected call of Put.
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) CreateWithAlias ¶
func (m *MockUrlUseCase) CreateWithAlias(ctx context.Context, id, destination string) (domain.Url, error)
CreateWithId mocks base method.
func (*MockUrlUseCase) Delete ¶
func (m *MockUrlUseCase) Delete(ctx context.Context, id string) error
Delete mocks base method.
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) Create ¶
func (mr *MockUrlUseCaseMockRecorder) Create(ctx, destination interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUrlUseCaseMockRecorder) CreateWithId ¶
func (mr *MockUrlUseCaseMockRecorder) CreateWithId(ctx, id, destination interface{}) *gomock.Call
CreateWithId indicates an expected call of CreateWithId.
func (*MockUrlUseCaseMockRecorder) Delete ¶
func (mr *MockUrlUseCaseMockRecorder) Delete(ctx, id 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) List ¶
func (mr *MockUrlUseCaseMockRecorder) List(ctx interface{}) *gomock.Call
List indicates an expected call of List.