Documentation ¶
Overview ¶
Package mock_db is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Create(key string, value []byte) error
- func (m *MockRepository) Delete(key string) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Retrieve(key string) ([]byte, error)
- func (m *MockRepository) Update(key string, value []byte) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Create(key, value interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Retrieve(key interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(key, value interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Create ¶
func (m *MockRepository) Create(key string, value []byte) error
Create mocks base method
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(key 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(key, value interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockRepositoryMockRecorder) Retrieve ¶
func (mr *MockRepositoryMockRecorder) Retrieve(key interface{}) *gomock.Call
Retrieve indicates an expected call of Retrieve
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(key, value interface{}) *gomock.Call
Update indicates an expected call of Update
Click to show internal directories.
Click to hide internal directories.