Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/nightlord189/ca-url-shortener/internal/usecase/adapters (interfaces: ICache)
Generated by this command:
mockgen -destination=../mock/icache.go -package=mock github.com/nightlord189/ca-url-shortener/internal/usecase/adapters ICache
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/nightlord189/ca-url-shortener/internal/usecase/adapters (interfaces: IStorage)
Generated by this command:
mockgen -destination=../mock/istorage.go -package=mock github.com/nightlord189/ca-url-shortener/internal/usecase/adapters IStorage
Package mock is a generated GoMock package.
Index ¶
- type MockICache
- type MockICacheMockRecorder
- type MockIStorage
- func (m *MockIStorage) CreateUser(arg0 context.Context, arg1 *entity.User) error
- func (m *MockIStorage) EXPECT() *MockIStorageMockRecorder
- func (m *MockIStorage) GetLink(arg0 context.Context, arg1 string) (string, error)
- func (m *MockIStorage) GetUserByUsername(arg0 context.Context, arg1 string) (*entity.User, error)
- func (m *MockIStorage) UpdateUserLinks(arg0 context.Context, arg1 *entity.User) error
- type MockIStorageMockRecorder
- func (mr *MockIStorageMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call
- func (mr *MockIStorageMockRecorder) GetLink(arg0, arg1 any) *gomock.Call
- func (mr *MockIStorageMockRecorder) GetUserByUsername(arg0, arg1 any) *gomock.Call
- func (mr *MockIStorageMockRecorder) UpdateUserLinks(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockICache ¶
type MockICache struct {
// contains filtered or unexported fields
}
MockICache is a mock of ICache interface.
func NewMockICache ¶
func NewMockICache(ctrl *gomock.Controller) *MockICache
NewMockICache creates a new mock instance.
func (*MockICache) EXPECT ¶
func (m *MockICache) EXPECT() *MockICacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockICacheMockRecorder ¶
type MockICacheMockRecorder struct {
// contains filtered or unexported fields
}
MockICacheMockRecorder is the mock recorder for MockICache.
type MockIStorage ¶
type MockIStorage struct {
// contains filtered or unexported fields
}
MockIStorage is a mock of IStorage interface.
func NewMockIStorage ¶
func NewMockIStorage(ctrl *gomock.Controller) *MockIStorage
NewMockIStorage creates a new mock instance.
func (*MockIStorage) CreateUser ¶
CreateUser mocks base method.
func (*MockIStorage) EXPECT ¶
func (m *MockIStorage) EXPECT() *MockIStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIStorage) GetUserByUsername ¶
GetUserByUsername mocks base method.
func (*MockIStorage) UpdateUserLinks ¶
UpdateUserLinks mocks base method.
type MockIStorageMockRecorder ¶
type MockIStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockIStorageMockRecorder is the mock recorder for MockIStorage.
func (*MockIStorageMockRecorder) CreateUser ¶
func (mr *MockIStorageMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockIStorageMockRecorder) GetLink ¶
func (mr *MockIStorageMockRecorder) GetLink(arg0, arg1 any) *gomock.Call
GetLink indicates an expected call of GetLink.
func (*MockIStorageMockRecorder) GetUserByUsername ¶
func (mr *MockIStorageMockRecorder) GetUserByUsername(arg0, arg1 any) *gomock.Call
GetUserByUsername indicates an expected call of GetUserByUsername.
func (*MockIStorageMockRecorder) UpdateUserLinks ¶
func (mr *MockIStorageMockRecorder) UpdateUserLinks(arg0, arg1 any) *gomock.Call
UpdateUserLinks indicates an expected call of UpdateUserLinks.