Documentation ¶
Overview ¶
Package mock_main is a generated GoMock package.
Index ¶
- type MockDatabaseManager
- type MockDatabaseManagerMockRecorder
- type MockURLDatabase
- func (m *MockURLDatabase) Close() error
- func (m *MockURLDatabase) Delete(key []byte, wo *opt.WriteOptions) error
- func (m *MockURLDatabase) EXPECT() *MockURLDatabaseMockRecorder
- func (m *MockURLDatabase) Get(key []byte, ro *opt.ReadOptions) ([]byte, error)
- func (m *MockURLDatabase) Has(key []byte, ro *opt.ReadOptions) (bool, error)
- func (m *MockURLDatabase) Put(key, value []byte, wo *opt.WriteOptions) error
- type MockURLDatabaseMockRecorder
- func (mr *MockURLDatabaseMockRecorder) Close() *gomock.Call
- func (mr *MockURLDatabaseMockRecorder) Delete(key, wo interface{}) *gomock.Call
- func (mr *MockURLDatabaseMockRecorder) Get(key, ro interface{}) *gomock.Call
- func (mr *MockURLDatabaseMockRecorder) Has(key, ro interface{}) *gomock.Call
- func (mr *MockURLDatabaseMockRecorder) Put(key, value, wo interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabaseManager ¶
type MockDatabaseManager struct {
// contains filtered or unexported fields
}
MockDatabaseManager is a mock of DatabaseManager interface.
func NewMockDatabaseManager ¶
func NewMockDatabaseManager(ctrl *gomock.Controller) *MockDatabaseManager
NewMockDatabaseManager creates a new mock instance.
func (*MockDatabaseManager) EXPECT ¶
func (m *MockDatabaseManager) EXPECT() *MockDatabaseManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDatabaseManagerMockRecorder ¶
type MockDatabaseManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseManagerMockRecorder is the mock recorder for MockDatabaseManager.
func (*MockDatabaseManagerMockRecorder) OpenFile ¶
func (mr *MockDatabaseManagerMockRecorder) OpenFile(path, o interface{}) *gomock.Call
OpenFile indicates an expected call of OpenFile.
type MockURLDatabase ¶
type MockURLDatabase struct {
// contains filtered or unexported fields
}
MockURLDatabase is a mock of URLDatabase interface.
func NewMockURLDatabase ¶
func NewMockURLDatabase(ctrl *gomock.Controller) *MockURLDatabase
NewMockURLDatabase creates a new mock instance.
func (*MockURLDatabase) Delete ¶
func (m *MockURLDatabase) Delete(key []byte, wo *opt.WriteOptions) error
Delete mocks base method.
func (*MockURLDatabase) EXPECT ¶
func (m *MockURLDatabase) EXPECT() *MockURLDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockURLDatabase) Get ¶
func (m *MockURLDatabase) Get(key []byte, ro *opt.ReadOptions) ([]byte, error)
Get mocks base method.
func (*MockURLDatabase) Has ¶
func (m *MockURLDatabase) Has(key []byte, ro *opt.ReadOptions) (bool, error)
Has mocks base method.
func (*MockURLDatabase) Put ¶
func (m *MockURLDatabase) Put(key, value []byte, wo *opt.WriteOptions) error
Put mocks base method.
type MockURLDatabaseMockRecorder ¶
type MockURLDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockURLDatabaseMockRecorder is the mock recorder for MockURLDatabase.
func (*MockURLDatabaseMockRecorder) Close ¶
func (mr *MockURLDatabaseMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockURLDatabaseMockRecorder) Delete ¶
func (mr *MockURLDatabaseMockRecorder) Delete(key, wo interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockURLDatabaseMockRecorder) Get ¶
func (mr *MockURLDatabaseMockRecorder) Get(key, ro interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockURLDatabaseMockRecorder) Has ¶
func (mr *MockURLDatabaseMockRecorder) Has(key, ro interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockURLDatabaseMockRecorder) Put ¶
func (mr *MockURLDatabaseMockRecorder) Put(key, value, wo interface{}) *gomock.Call
Put indicates an expected call of Put.