mock_main

package
v0.0.0-...-4c961c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_main is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatabaseManager) OpenFile

func (m *MockDatabaseManager) OpenFile(path string, o *opt.Options) (*leveldb.DB, error)

OpenFile mocks base method.

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) Close

func (m *MockURLDatabase) Close() error

Close mocks base method.

func (*MockURLDatabase) Delete

func (m *MockURLDatabase) Delete(key []byte, wo *opt.WriteOptions) error

Delete mocks base method.

func (*MockURLDatabase) EXPECT

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL