mock

package
v2.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBucket

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

MockBucket is a mock of Bucket interface

func NewMockBucket

func NewMockBucket(ctrl *gomock.Controller) *MockBucket

NewMockBucket creates a new mock instance

func (*MockBucket) Cursor

func (m *MockBucket) Cursor(arg0 ...kv.CursorHint) (kv.Cursor, error)

Cursor mocks base method

func (*MockBucket) Delete

func (m *MockBucket) Delete(arg0 []byte) error

Delete mocks base method

func (*MockBucket) EXPECT

func (m *MockBucket) EXPECT() *MockBucketMockRecorder

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

func (*MockBucket) ForwardCursor

func (m *MockBucket) ForwardCursor(arg0 []byte, arg1 ...kv.CursorOption) (kv.ForwardCursor, error)

ForwardCursor mocks base method

func (*MockBucket) Get

func (m *MockBucket) Get(arg0 []byte) ([]byte, error)

Get mocks base method

func (*MockBucket) GetBatch

func (m *MockBucket) GetBatch(arg0 ...[]byte) ([][]byte, error)

GetBatch mocks base method

func (*MockBucket) Put

func (m *MockBucket) Put(arg0, arg1 []byte) error

Put mocks base method

type MockBucketMockRecorder

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

MockBucketMockRecorder is the mock recorder for MockBucket

func (*MockBucketMockRecorder) Cursor

func (mr *MockBucketMockRecorder) Cursor(arg0 ...interface{}) *gomock.Call

Cursor indicates an expected call of Cursor

func (*MockBucketMockRecorder) Delete

func (mr *MockBucketMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockBucketMockRecorder) ForwardCursor

func (mr *MockBucketMockRecorder) ForwardCursor(arg0 interface{}, arg1 ...interface{}) *gomock.Call

ForwardCursor indicates an expected call of ForwardCursor

func (*MockBucketMockRecorder) Get

func (mr *MockBucketMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockBucketMockRecorder) GetBatch

func (mr *MockBucketMockRecorder) GetBatch(arg0 ...interface{}) *gomock.Call

GetBatch indicates an expected call of GetBatch

func (*MockBucketMockRecorder) Put

func (mr *MockBucketMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call

Put indicates an expected call of Put

type MockForwardCursor

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

MockForwardCursor is a mock of ForwardCursor interface

func NewMockForwardCursor

func NewMockForwardCursor(ctrl *gomock.Controller) *MockForwardCursor

NewMockForwardCursor creates a new mock instance

func (*MockForwardCursor) Close

func (m *MockForwardCursor) Close() error

Close mocks base method

func (*MockForwardCursor) EXPECT

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

func (*MockForwardCursor) Err

func (m *MockForwardCursor) Err() error

Err mocks base method

func (*MockForwardCursor) Next

func (m *MockForwardCursor) Next() ([]byte, []byte)

Next mocks base method

type MockForwardCursorMockRecorder

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

MockForwardCursorMockRecorder is the mock recorder for MockForwardCursor

func (*MockForwardCursorMockRecorder) Close

Close indicates an expected call of Close

func (*MockForwardCursorMockRecorder) Err

Err indicates an expected call of Err

func (*MockForwardCursorMockRecorder) Next

Next indicates an expected call of Next

type MockTx

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

MockTx is a mock of Tx interface

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance

func (*MockTx) Bucket

func (m *MockTx) Bucket(arg0 []byte) (kv.Bucket, error)

Bucket mocks base method

func (*MockTx) Context

func (m *MockTx) Context() context.Context

Context mocks base method

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

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

func (*MockTx) WithContext

func (m *MockTx) WithContext(arg0 context.Context)

WithContext mocks base method

type MockTxMockRecorder

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

MockTxMockRecorder is the mock recorder for MockTx

func (*MockTxMockRecorder) Bucket

func (mr *MockTxMockRecorder) Bucket(arg0 interface{}) *gomock.Call

Bucket indicates an expected call of Bucket

func (*MockTxMockRecorder) Context

func (mr *MockTxMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context

func (*MockTxMockRecorder) WithContext

func (mr *MockTxMockRecorder) WithContext(arg0 interface{}) *gomock.Call

WithContext indicates an expected call of WithContext

Jump to

Keyboard shortcuts

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