mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

README

README

The mocks here only exist because odysseygo doesn't have convenient mocks for them.

TODO: get rid of this package and send out a PR to odysseygo to move these over.

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) Close

func (m *MockDatabase) Close() error

Close mocks base method.

func (*MockDatabase) Compact

func (m *MockDatabase) Compact(arg0, arg1 []byte) error

Compact mocks base method.

func (*MockDatabase) Delete

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

Delete mocks base method.

func (*MockDatabase) EXPECT

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

func (*MockDatabase) Get

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

Get mocks base method.

func (*MockDatabase) Has

func (m *MockDatabase) Has(arg0 []byte) (bool, error)

Has mocks base method.

func (*MockDatabase) HealthCheck

func (m *MockDatabase) HealthCheck(arg0 context.Context) (interface{}, error)

HealthCheck mocks base method.

func (*MockDatabase) NewBatch

func (m *MockDatabase) NewBatch() database.Batch

NewBatch mocks base method.

func (*MockDatabase) NewIterator

func (m *MockDatabase) NewIterator() database.Iterator

NewIterator mocks base method.

func (*MockDatabase) NewIteratorWithPrefix

func (m *MockDatabase) NewIteratorWithPrefix(arg0 []byte) database.Iterator

NewIteratorWithPrefix mocks base method.

func (*MockDatabase) NewIteratorWithStart

func (m *MockDatabase) NewIteratorWithStart(arg0 []byte) database.Iterator

NewIteratorWithStart mocks base method.

func (*MockDatabase) NewIteratorWithStartAndPrefix

func (m *MockDatabase) NewIteratorWithStartAndPrefix(arg0, arg1 []byte) database.Iterator

NewIteratorWithStartAndPrefix mocks base method.

func (*MockDatabase) Put

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

Put mocks base method.

type MockDatabaseIterator

type MockDatabaseIterator struct {
	NextV        bool
	ErrV         error
	KeyV, ValueV []byte
}

func (MockDatabaseIterator) Error

func (m MockDatabaseIterator) Error() error

func (MockDatabaseIterator) Key

func (m MockDatabaseIterator) Key() []byte

func (MockDatabaseIterator) Next

func (m MockDatabaseIterator) Next() bool

func (MockDatabaseIterator) Release

func (m MockDatabaseIterator) Release()

func (MockDatabaseIterator) Value

func (m MockDatabaseIterator) Value() []byte

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) Close

func (mr *MockDatabaseMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDatabaseMockRecorder) Compact

func (mr *MockDatabaseMockRecorder) Compact(arg0, arg1 interface{}) *gomock.Call

Compact indicates an expected call of Compact.

func (*MockDatabaseMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockDatabaseMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockDatabaseMockRecorder) Has

func (mr *MockDatabaseMockRecorder) Has(arg0 interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockDatabaseMockRecorder) HealthCheck

func (mr *MockDatabaseMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockDatabaseMockRecorder) NewBatch

func (mr *MockDatabaseMockRecorder) NewBatch() *gomock.Call

NewBatch indicates an expected call of NewBatch.

func (*MockDatabaseMockRecorder) NewIterator

func (mr *MockDatabaseMockRecorder) NewIterator() *gomock.Call

NewIterator indicates an expected call of NewIterator.

func (*MockDatabaseMockRecorder) NewIteratorWithPrefix

func (mr *MockDatabaseMockRecorder) NewIteratorWithPrefix(arg0 interface{}) *gomock.Call

NewIteratorWithPrefix indicates an expected call of NewIteratorWithPrefix.

func (*MockDatabaseMockRecorder) NewIteratorWithStart

func (mr *MockDatabaseMockRecorder) NewIteratorWithStart(arg0 interface{}) *gomock.Call

NewIteratorWithStart indicates an expected call of NewIteratorWithStart.

func (*MockDatabaseMockRecorder) NewIteratorWithStartAndPrefix

func (mr *MockDatabaseMockRecorder) NewIteratorWithStartAndPrefix(arg0, arg1 interface{}) *gomock.Call

NewIteratorWithStartAndPrefix indicates an expected call of NewIteratorWithStartAndPrefix.

func (*MockDatabaseMockRecorder) Put

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

Put indicates an expected call of Put.

type MockIterator

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

MockIterator is a mock of Iterator interface.

func NewMockIterator

func NewMockIterator(ctrl *gomock.Controller) *MockIterator

NewMockIterator creates a new mock instance.

func (*MockIterator) EXPECT

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

func (*MockIterator) Error

func (m *MockIterator) Error() error

Error mocks base method.

func (*MockIterator) Key

func (m *MockIterator) Key() []byte

Key mocks base method.

func (*MockIterator) Next

func (m *MockIterator) Next() bool

Next mocks base method.

func (*MockIterator) Release

func (m *MockIterator) Release()

Release mocks base method.

func (*MockIterator) Value

func (m *MockIterator) Value() []byte

Value mocks base method.

type MockIteratorMockRecorder

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

MockIteratorMockRecorder is the mock recorder for MockIterator.

func (*MockIteratorMockRecorder) Error

func (mr *MockIteratorMockRecorder) Error() *gomock.Call

Error indicates an expected call of Error.

func (*MockIteratorMockRecorder) Key

Key indicates an expected call of Key.

func (*MockIteratorMockRecorder) Next

func (mr *MockIteratorMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next.

func (*MockIteratorMockRecorder) Release

func (mr *MockIteratorMockRecorder) Release() *gomock.Call

Release indicates an expected call of Release.

func (*MockIteratorMockRecorder) Value

func (mr *MockIteratorMockRecorder) Value() *gomock.Call

Value indicates an expected call of Value.

Jump to

Keyboard shortcuts

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