mocks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

README

README

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

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

Documentation

Overview

Package server is a generated GoMock package.

Package server is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCompacter

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

MockCompacter is a mock of Compacter interface.

func NewMockCompacter

func NewMockCompacter(ctrl *gomock.Controller) *MockCompacter

NewMockCompacter creates a new mock instance.

func (*MockCompacter) Compact

func (m *MockCompacter) Compact(start, limit []byte) error

Compact mocks base method.

func (*MockCompacter) EXPECT

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

type MockCompacterMockRecorder

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

MockCompacterMockRecorder is the mock recorder for MockCompacter.

func (*MockCompacterMockRecorder) Compact

func (mr *MockCompacterMockRecorder) Compact(start, limit interface{}) *gomock.Call

Compact indicates an expected call of Compact.

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(start, limit []byte) error

Compact mocks base method.

func (*MockDatabase) Delete

func (m *MockDatabase) Delete(key []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(key []byte) ([]byte, error)

Get mocks base method.

func (*MockDatabase) Has

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

Has mocks base method.

func (*MockDatabase) HealthCheck

func (m *MockDatabase) HealthCheck() (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(prefix []byte) database.Iterator

NewIteratorWithPrefix mocks base method.

func (*MockDatabase) NewIteratorWithStart

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

NewIteratorWithStart mocks base method.

func (*MockDatabase) NewIteratorWithStartAndPrefix

func (m *MockDatabase) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator

NewIteratorWithStartAndPrefix mocks base method.

func (*MockDatabase) Put

func (m *MockDatabase) Put(key, value []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(start, limit interface{}) *gomock.Call

Compact indicates an expected call of Compact.

func (*MockDatabaseMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockDatabaseMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockDatabaseMockRecorder) Has

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

Has indicates an expected call of Has.

func (*MockDatabaseMockRecorder) HealthCheck

func (mr *MockDatabaseMockRecorder) HealthCheck() *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(prefix interface{}) *gomock.Call

NewIteratorWithPrefix indicates an expected call of NewIteratorWithPrefix.

func (*MockDatabaseMockRecorder) NewIteratorWithStart

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

NewIteratorWithStart indicates an expected call of NewIteratorWithStart.

func (*MockDatabaseMockRecorder) NewIteratorWithStartAndPrefix

func (mr *MockDatabaseMockRecorder) NewIteratorWithStartAndPrefix(start, prefix interface{}) *gomock.Call

NewIteratorWithStartAndPrefix indicates an expected call of NewIteratorWithStartAndPrefix.

func (*MockDatabaseMockRecorder) Put

func (mr *MockDatabaseMockRecorder) Put(key, value interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockIteratee

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

MockIteratee is a mock of Iteratee interface.

func NewMockIteratee

func NewMockIteratee(ctrl *gomock.Controller) *MockIteratee

NewMockIteratee creates a new mock instance.

func (*MockIteratee) EXPECT

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

func (*MockIteratee) NewIterator

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

NewIterator mocks base method.

func (*MockIteratee) NewIteratorWithPrefix

func (m *MockIteratee) NewIteratorWithPrefix(prefix []byte) database.Iterator

NewIteratorWithPrefix mocks base method.

func (*MockIteratee) NewIteratorWithStart

func (m *MockIteratee) NewIteratorWithStart(start []byte) database.Iterator

NewIteratorWithStart mocks base method.

func (*MockIteratee) NewIteratorWithStartAndPrefix

func (m *MockIteratee) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator

NewIteratorWithStartAndPrefix mocks base method.

type MockIterateeMockRecorder

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

MockIterateeMockRecorder is the mock recorder for MockIteratee.

func (*MockIterateeMockRecorder) NewIterator

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

NewIterator indicates an expected call of NewIterator.

func (*MockIterateeMockRecorder) NewIteratorWithPrefix

func (mr *MockIterateeMockRecorder) NewIteratorWithPrefix(prefix interface{}) *gomock.Call

NewIteratorWithPrefix indicates an expected call of NewIteratorWithPrefix.

func (*MockIterateeMockRecorder) NewIteratorWithStart

func (mr *MockIterateeMockRecorder) NewIteratorWithStart(start interface{}) *gomock.Call

NewIteratorWithStart indicates an expected call of NewIteratorWithStart.

func (*MockIterateeMockRecorder) NewIteratorWithStartAndPrefix

func (mr *MockIterateeMockRecorder) NewIteratorWithStartAndPrefix(start, prefix interface{}) *gomock.Call

NewIteratorWithStartAndPrefix indicates an expected call of NewIteratorWithStartAndPrefix.

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.

type MockKeyValueDeleter

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

MockKeyValueDeleter is a mock of KeyValueDeleter interface.

func NewMockKeyValueDeleter

func NewMockKeyValueDeleter(ctrl *gomock.Controller) *MockKeyValueDeleter

NewMockKeyValueDeleter creates a new mock instance.

func (*MockKeyValueDeleter) Delete

func (m *MockKeyValueDeleter) Delete(key []byte) error

Delete mocks base method.

func (*MockKeyValueDeleter) EXPECT

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

type MockKeyValueDeleterMockRecorder

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

MockKeyValueDeleterMockRecorder is the mock recorder for MockKeyValueDeleter.

func (*MockKeyValueDeleterMockRecorder) Delete

func (mr *MockKeyValueDeleterMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

type MockKeyValueReader

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

MockKeyValueReader is a mock of KeyValueReader interface.

func NewMockKeyValueReader

func NewMockKeyValueReader(ctrl *gomock.Controller) *MockKeyValueReader

NewMockKeyValueReader creates a new mock instance.

func (*MockKeyValueReader) EXPECT

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

func (*MockKeyValueReader) Get

func (m *MockKeyValueReader) Get(key []byte) ([]byte, error)

Get mocks base method.

func (*MockKeyValueReader) Has

func (m *MockKeyValueReader) Has(key []byte) (bool, error)

Has mocks base method.

type MockKeyValueReaderMockRecorder

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

MockKeyValueReaderMockRecorder is the mock recorder for MockKeyValueReader.

func (*MockKeyValueReaderMockRecorder) Get

func (mr *MockKeyValueReaderMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockKeyValueReaderMockRecorder) Has

func (mr *MockKeyValueReaderMockRecorder) Has(key interface{}) *gomock.Call

Has indicates an expected call of Has.

type MockKeyValueReaderWriter

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

MockKeyValueReaderWriter is a mock of KeyValueReaderWriter interface.

func NewMockKeyValueReaderWriter

func NewMockKeyValueReaderWriter(ctrl *gomock.Controller) *MockKeyValueReaderWriter

NewMockKeyValueReaderWriter creates a new mock instance.

func (*MockKeyValueReaderWriter) EXPECT

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

func (*MockKeyValueReaderWriter) Get

func (m *MockKeyValueReaderWriter) Get(key []byte) ([]byte, error)

Get mocks base method.

func (*MockKeyValueReaderWriter) Has

func (m *MockKeyValueReaderWriter) Has(key []byte) (bool, error)

Has mocks base method.

func (*MockKeyValueReaderWriter) Put

func (m *MockKeyValueReaderWriter) Put(key, value []byte) error

Put mocks base method.

type MockKeyValueReaderWriterDeleter

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

MockKeyValueReaderWriterDeleter is a mock of KeyValueReaderWriterDeleter interface.

func NewMockKeyValueReaderWriterDeleter

func NewMockKeyValueReaderWriterDeleter(ctrl *gomock.Controller) *MockKeyValueReaderWriterDeleter

NewMockKeyValueReaderWriterDeleter creates a new mock instance.

func (*MockKeyValueReaderWriterDeleter) Delete

func (m *MockKeyValueReaderWriterDeleter) Delete(key []byte) error

Delete mocks base method.

func (*MockKeyValueReaderWriterDeleter) EXPECT

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

func (*MockKeyValueReaderWriterDeleter) Get

func (m *MockKeyValueReaderWriterDeleter) Get(key []byte) ([]byte, error)

Get mocks base method.

func (*MockKeyValueReaderWriterDeleter) Has

Has mocks base method.

func (*MockKeyValueReaderWriterDeleter) Put

func (m *MockKeyValueReaderWriterDeleter) Put(key, value []byte) error

Put mocks base method.

type MockKeyValueReaderWriterDeleterMockRecorder

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

MockKeyValueReaderWriterDeleterMockRecorder is the mock recorder for MockKeyValueReaderWriterDeleter.

func (*MockKeyValueReaderWriterDeleterMockRecorder) Delete

func (mr *MockKeyValueReaderWriterDeleterMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockKeyValueReaderWriterDeleterMockRecorder) Get

func (mr *MockKeyValueReaderWriterDeleterMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockKeyValueReaderWriterDeleterMockRecorder) Has

func (mr *MockKeyValueReaderWriterDeleterMockRecorder) Has(key interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockKeyValueReaderWriterDeleterMockRecorder) Put

func (mr *MockKeyValueReaderWriterDeleterMockRecorder) Put(key, value interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockKeyValueReaderWriterMockRecorder

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

MockKeyValueReaderWriterMockRecorder is the mock recorder for MockKeyValueReaderWriter.

func (*MockKeyValueReaderWriterMockRecorder) Get

func (mr *MockKeyValueReaderWriterMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockKeyValueReaderWriterMockRecorder) Has

func (mr *MockKeyValueReaderWriterMockRecorder) Has(key interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockKeyValueReaderWriterMockRecorder) Put

func (mr *MockKeyValueReaderWriterMockRecorder) Put(key, value interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockKeyValueWriter

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

MockKeyValueWriter is a mock of KeyValueWriter interface.

func NewMockKeyValueWriter

func NewMockKeyValueWriter(ctrl *gomock.Controller) *MockKeyValueWriter

NewMockKeyValueWriter creates a new mock instance.

func (*MockKeyValueWriter) EXPECT

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

func (*MockKeyValueWriter) Put

func (m *MockKeyValueWriter) Put(key, value []byte) error

Put mocks base method.

type MockKeyValueWriterDeleter

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

MockKeyValueWriterDeleter is a mock of KeyValueWriterDeleter interface.

func NewMockKeyValueWriterDeleter

func NewMockKeyValueWriterDeleter(ctrl *gomock.Controller) *MockKeyValueWriterDeleter

NewMockKeyValueWriterDeleter creates a new mock instance.

func (*MockKeyValueWriterDeleter) Delete

func (m *MockKeyValueWriterDeleter) Delete(key []byte) error

Delete mocks base method.

func (*MockKeyValueWriterDeleter) EXPECT

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

func (*MockKeyValueWriterDeleter) Put

func (m *MockKeyValueWriterDeleter) Put(key, value []byte) error

Put mocks base method.

type MockKeyValueWriterDeleterMockRecorder

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

MockKeyValueWriterDeleterMockRecorder is the mock recorder for MockKeyValueWriterDeleter.

func (*MockKeyValueWriterDeleterMockRecorder) Delete

func (mr *MockKeyValueWriterDeleterMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockKeyValueWriterDeleterMockRecorder) Put

func (mr *MockKeyValueWriterDeleterMockRecorder) Put(key, value interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockKeyValueWriterMockRecorder

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

MockKeyValueWriterMockRecorder is the mock recorder for MockKeyValueWriter.

func (*MockKeyValueWriterMockRecorder) Put

func (mr *MockKeyValueWriterMockRecorder) Put(key, value 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