mock_pathdb

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_pathdb is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

type MockDB struct {
	// contains filtered or unexported fields
}

MockDB is a mock of DB interface.

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance.

func (*MockDB) BeginTransaction

func (m *MockDB) BeginTransaction(arg0 context.Context, arg1 *sql.TxOptions) (pathdb.Transaction, error)

BeginTransaction mocks base method.

func (*MockDB) DeleteExpired

func (m *MockDB) DeleteExpired(arg0 context.Context, arg1 time.Time) (int, error)

DeleteExpired mocks base method.

func (*MockDB) DeleteSegment added in v0.11.0

func (m *MockDB) DeleteSegment(arg0 context.Context, arg1 string) error

DeleteSegment mocks base method.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) Get

func (m *MockDB) Get(arg0 context.Context, arg1 *query.Params) (query.Results, error)

Get mocks base method.

func (*MockDB) GetAll

func (m *MockDB) GetAll(arg0 context.Context) (query.Results, error)

GetAll mocks base method.

func (*MockDB) GetNextQuery

func (m *MockDB) GetNextQuery(arg0 context.Context, arg1, arg2 addr.IA) (time.Time, error)

GetNextQuery mocks base method.

func (*MockDB) Insert

func (m *MockDB) Insert(arg0 context.Context, arg1 *segment.Meta) (pathdb.InsertStats, error)

Insert mocks base method.

func (*MockDB) InsertNextQuery

func (m *MockDB) InsertNextQuery(arg0 context.Context, arg1, arg2 addr.IA, arg3 time.Time) (bool, error)

InsertNextQuery mocks base method.

func (*MockDB) InsertWithHPGroupIDs

func (m *MockDB) InsertWithHPGroupIDs(arg0 context.Context, arg1 *segment.Meta, arg2 []uint64) (pathdb.InsertStats, error)

InsertWithHPGroupIDs mocks base method.

type MockDBMockRecorder

type MockDBMockRecorder struct {
	// contains filtered or unexported fields
}

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) BeginTransaction

func (mr *MockDBMockRecorder) BeginTransaction(arg0, arg1 interface{}) *gomock.Call

BeginTransaction indicates an expected call of BeginTransaction.

func (*MockDBMockRecorder) DeleteExpired

func (mr *MockDBMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call

DeleteExpired indicates an expected call of DeleteExpired.

func (*MockDBMockRecorder) DeleteSegment added in v0.11.0

func (mr *MockDBMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call

DeleteSegment indicates an expected call of DeleteSegment.

func (*MockDBMockRecorder) Get

func (mr *MockDBMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockDBMockRecorder) GetAll

func (mr *MockDBMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockDBMockRecorder) GetNextQuery

func (mr *MockDBMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call

GetNextQuery indicates an expected call of GetNextQuery.

func (*MockDBMockRecorder) Insert

func (mr *MockDBMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockDBMockRecorder) InsertNextQuery

func (mr *MockDBMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

InsertNextQuery indicates an expected call of InsertNextQuery.

func (*MockDBMockRecorder) InsertWithHPGroupIDs

func (mr *MockDBMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call

InsertWithHPGroupIDs indicates an expected call of InsertWithHPGroupIDs.

type MockReadWrite

type MockReadWrite struct {
	// contains filtered or unexported fields
}

MockReadWrite is a mock of ReadWrite interface.

func NewMockReadWrite

func NewMockReadWrite(ctrl *gomock.Controller) *MockReadWrite

NewMockReadWrite creates a new mock instance.

func (*MockReadWrite) DeleteExpired

func (m *MockReadWrite) DeleteExpired(arg0 context.Context, arg1 time.Time) (int, error)

DeleteExpired mocks base method.

func (*MockReadWrite) DeleteSegment added in v0.11.0

func (m *MockReadWrite) DeleteSegment(arg0 context.Context, arg1 string) error

DeleteSegment mocks base method.

func (*MockReadWrite) EXPECT

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

func (*MockReadWrite) Get

func (m *MockReadWrite) Get(arg0 context.Context, arg1 *query.Params) (query.Results, error)

Get mocks base method.

func (*MockReadWrite) GetAll

func (m *MockReadWrite) GetAll(arg0 context.Context) (query.Results, error)

GetAll mocks base method.

func (*MockReadWrite) GetNextQuery

func (m *MockReadWrite) GetNextQuery(arg0 context.Context, arg1, arg2 addr.IA) (time.Time, error)

GetNextQuery mocks base method.

func (*MockReadWrite) Insert

func (m *MockReadWrite) Insert(arg0 context.Context, arg1 *segment.Meta) (pathdb.InsertStats, error)

Insert mocks base method.

func (*MockReadWrite) InsertNextQuery

func (m *MockReadWrite) InsertNextQuery(arg0 context.Context, arg1, arg2 addr.IA, arg3 time.Time) (bool, error)

InsertNextQuery mocks base method.

func (*MockReadWrite) InsertWithHPGroupIDs

func (m *MockReadWrite) InsertWithHPGroupIDs(arg0 context.Context, arg1 *segment.Meta, arg2 []uint64) (pathdb.InsertStats, error)

InsertWithHPGroupIDs mocks base method.

type MockReadWriteMockRecorder

type MockReadWriteMockRecorder struct {
	// contains filtered or unexported fields
}

MockReadWriteMockRecorder is the mock recorder for MockReadWrite.

func (*MockReadWriteMockRecorder) DeleteExpired

func (mr *MockReadWriteMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call

DeleteExpired indicates an expected call of DeleteExpired.

func (*MockReadWriteMockRecorder) DeleteSegment added in v0.11.0

func (mr *MockReadWriteMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call

DeleteSegment indicates an expected call of DeleteSegment.

func (*MockReadWriteMockRecorder) Get

func (mr *MockReadWriteMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockReadWriteMockRecorder) GetAll

func (mr *MockReadWriteMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockReadWriteMockRecorder) GetNextQuery

func (mr *MockReadWriteMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call

GetNextQuery indicates an expected call of GetNextQuery.

func (*MockReadWriteMockRecorder) Insert

func (mr *MockReadWriteMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockReadWriteMockRecorder) InsertNextQuery

func (mr *MockReadWriteMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

InsertNextQuery indicates an expected call of InsertNextQuery.

func (*MockReadWriteMockRecorder) InsertWithHPGroupIDs

func (mr *MockReadWriteMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call

InsertWithHPGroupIDs indicates an expected call of InsertWithHPGroupIDs.

type MockTransaction

type MockTransaction struct {
	// contains filtered or unexported fields
}

MockTransaction is a mock of Transaction interface.

func NewMockTransaction

func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction

NewMockTransaction creates a new mock instance.

func (*MockTransaction) Commit

func (m *MockTransaction) Commit() error

Commit mocks base method.

func (*MockTransaction) DeleteExpired

func (m *MockTransaction) DeleteExpired(arg0 context.Context, arg1 time.Time) (int, error)

DeleteExpired mocks base method.

func (*MockTransaction) DeleteSegment added in v0.11.0

func (m *MockTransaction) DeleteSegment(arg0 context.Context, arg1 string) error

DeleteSegment mocks base method.

func (*MockTransaction) EXPECT

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

func (*MockTransaction) Get

func (m *MockTransaction) Get(arg0 context.Context, arg1 *query.Params) (query.Results, error)

Get mocks base method.

func (*MockTransaction) GetAll

func (m *MockTransaction) GetAll(arg0 context.Context) (query.Results, error)

GetAll mocks base method.

func (*MockTransaction) GetNextQuery

func (m *MockTransaction) GetNextQuery(arg0 context.Context, arg1, arg2 addr.IA) (time.Time, error)

GetNextQuery mocks base method.

func (*MockTransaction) Insert

func (m *MockTransaction) Insert(arg0 context.Context, arg1 *segment.Meta) (pathdb.InsertStats, error)

Insert mocks base method.

func (*MockTransaction) InsertNextQuery

func (m *MockTransaction) InsertNextQuery(arg0 context.Context, arg1, arg2 addr.IA, arg3 time.Time) (bool, error)

InsertNextQuery mocks base method.

func (*MockTransaction) InsertWithHPGroupIDs

func (m *MockTransaction) InsertWithHPGroupIDs(arg0 context.Context, arg1 *segment.Meta, arg2 []uint64) (pathdb.InsertStats, error)

InsertWithHPGroupIDs mocks base method.

func (*MockTransaction) Rollback

func (m *MockTransaction) Rollback() error

Rollback mocks base method.

type MockTransactionMockRecorder

type MockTransactionMockRecorder struct {
	// contains filtered or unexported fields
}

MockTransactionMockRecorder is the mock recorder for MockTransaction.

func (*MockTransactionMockRecorder) Commit

func (mr *MockTransactionMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTransactionMockRecorder) DeleteExpired

func (mr *MockTransactionMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call

DeleteExpired indicates an expected call of DeleteExpired.

func (*MockTransactionMockRecorder) DeleteSegment added in v0.11.0

func (mr *MockTransactionMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call

DeleteSegment indicates an expected call of DeleteSegment.

func (*MockTransactionMockRecorder) Get

func (mr *MockTransactionMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockTransactionMockRecorder) GetAll

func (mr *MockTransactionMockRecorder) GetAll(arg0 interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockTransactionMockRecorder) GetNextQuery

func (mr *MockTransactionMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call

GetNextQuery indicates an expected call of GetNextQuery.

func (*MockTransactionMockRecorder) Insert

func (mr *MockTransactionMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockTransactionMockRecorder) InsertNextQuery

func (mr *MockTransactionMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

InsertNextQuery indicates an expected call of InsertNextQuery.

func (*MockTransactionMockRecorder) InsertWithHPGroupIDs

func (mr *MockTransactionMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call

InsertWithHPGroupIDs indicates an expected call of InsertWithHPGroupIDs.

func (*MockTransactionMockRecorder) Rollback

func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

Jump to

Keyboard shortcuts

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