Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDBConnection
- func (m *MockDBConnection) Close() error
- func (m *MockDBConnection) DeleteVersion(arg0 uint64) error
- func (m *MockDBConnection) EXPECT() *MockDBConnectionMockRecorder
- func (m *MockDBConnection) ReadWriter() db.DBReadWriter
- func (m *MockDBConnection) Reader() db.DBReader
- func (m *MockDBConnection) ReaderAt(arg0 uint64) (db.DBReader, error)
- func (m *MockDBConnection) Revert() error
- func (m *MockDBConnection) SaveNextVersion() (uint64, error)
- func (m *MockDBConnection) SaveVersion(arg0 uint64) error
- func (m *MockDBConnection) Versions() (db.VersionSet, error)
- func (m *MockDBConnection) Writer() db.DBWriter
- type MockDBConnectionMockRecorder
- func (mr *MockDBConnectionMockRecorder) Close() *gomock.Call
- func (mr *MockDBConnectionMockRecorder) DeleteVersion(arg0 interface{}) *gomock.Call
- func (mr *MockDBConnectionMockRecorder) ReadWriter() *gomock.Call
- func (mr *MockDBConnectionMockRecorder) Reader() *gomock.Call
- func (mr *MockDBConnectionMockRecorder) ReaderAt(arg0 interface{}) *gomock.Call
- func (mr *MockDBConnectionMockRecorder) Revert() *gomock.Call
- func (mr *MockDBConnectionMockRecorder) SaveNextVersion() *gomock.Call
- func (mr *MockDBConnectionMockRecorder) SaveVersion(arg0 interface{}) *gomock.Call
- func (mr *MockDBConnectionMockRecorder) Versions() *gomock.Call
- func (mr *MockDBConnectionMockRecorder) Writer() *gomock.Call
- type MockDBReadWriter
- func (m *MockDBReadWriter) Commit() error
- func (m *MockDBReadWriter) Delete(arg0 []byte) error
- func (m *MockDBReadWriter) Discard() error
- func (m *MockDBReadWriter) EXPECT() *MockDBReadWriterMockRecorder
- func (m *MockDBReadWriter) Get(arg0 []byte) ([]byte, error)
- func (m *MockDBReadWriter) Has(key []byte) (bool, error)
- func (m *MockDBReadWriter) Iterator(start, end []byte) (db.Iterator, error)
- func (m *MockDBReadWriter) ReverseIterator(start, end []byte) (db.Iterator, error)
- func (m *MockDBReadWriter) Set(arg0, arg1 []byte) error
- type MockDBReadWriterMockRecorder
- func (mr *MockDBReadWriterMockRecorder) Commit() *gomock.Call
- func (mr *MockDBReadWriterMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockDBReadWriterMockRecorder) Discard() *gomock.Call
- func (mr *MockDBReadWriterMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockDBReadWriterMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockDBReadWriterMockRecorder) Iterator(start, end interface{}) *gomock.Call
- func (mr *MockDBReadWriterMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
- func (mr *MockDBReadWriterMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- type MockDBReader
- func (m *MockDBReader) Discard() error
- func (m *MockDBReader) EXPECT() *MockDBReaderMockRecorder
- func (m *MockDBReader) Get(arg0 []byte) ([]byte, error)
- func (m *MockDBReader) Has(key []byte) (bool, error)
- func (m *MockDBReader) Iterator(start, end []byte) (db.Iterator, error)
- func (m *MockDBReader) ReverseIterator(start, end []byte) (db.Iterator, error)
- type MockDBReaderMockRecorder
- func (mr *MockDBReaderMockRecorder) Discard() *gomock.Call
- func (mr *MockDBReaderMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockDBReaderMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockDBReaderMockRecorder) Iterator(start, end interface{}) *gomock.Call
- func (mr *MockDBReaderMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
- type MockDBWriter
- type MockDBWriterMockRecorder
- type MockIterator
- type MockIteratorMockRecorder
- func (mr *MockIteratorMockRecorder) Close() *gomock.Call
- func (mr *MockIteratorMockRecorder) Domain() *gomock.Call
- func (mr *MockIteratorMockRecorder) Error() *gomock.Call
- func (mr *MockIteratorMockRecorder) Key() *gomock.Call
- func (mr *MockIteratorMockRecorder) Next() *gomock.Call
- func (mr *MockIteratorMockRecorder) Value() *gomock.Call
- type MockVersionIterator
- type MockVersionIteratorMockRecorder
- type MockVersionSet
- type MockVersionSetMockRecorder
- func (mr *MockVersionSetMockRecorder) Count() *gomock.Call
- func (mr *MockVersionSetMockRecorder) Equal(arg0 interface{}) *gomock.Call
- func (mr *MockVersionSetMockRecorder) Exists(arg0 interface{}) *gomock.Call
- func (mr *MockVersionSetMockRecorder) Iterator() *gomock.Call
- func (mr *MockVersionSetMockRecorder) Last() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDBConnection ¶
type MockDBConnection struct {
// contains filtered or unexported fields
}
MockDBConnection is a mock of DBConnection interface.
func NewMockDBConnection ¶
func NewMockDBConnection(ctrl *gomock.Controller) *MockDBConnection
NewMockDBConnection creates a new mock instance.
func (*MockDBConnection) DeleteVersion ¶
func (m *MockDBConnection) DeleteVersion(arg0 uint64) error
DeleteVersion mocks base method.
func (*MockDBConnection) EXPECT ¶
func (m *MockDBConnection) EXPECT() *MockDBConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBConnection) ReadWriter ¶
func (m *MockDBConnection) ReadWriter() db.DBReadWriter
ReadWriter mocks base method.
func (*MockDBConnection) Reader ¶
func (m *MockDBConnection) Reader() db.DBReader
Reader mocks base method.
func (*MockDBConnection) ReaderAt ¶
func (m *MockDBConnection) ReaderAt(arg0 uint64) (db.DBReader, error)
ReaderAt mocks base method.
func (*MockDBConnection) Revert ¶
func (m *MockDBConnection) Revert() error
Revert mocks base method.
func (*MockDBConnection) SaveNextVersion ¶
func (m *MockDBConnection) SaveNextVersion() (uint64, error)
SaveNextVersion mocks base method.
func (*MockDBConnection) SaveVersion ¶
func (m *MockDBConnection) SaveVersion(arg0 uint64) error
SaveVersion mocks base method.
func (*MockDBConnection) Versions ¶
func (m *MockDBConnection) Versions() (db.VersionSet, error)
Versions mocks base method.
func (*MockDBConnection) Writer ¶
func (m *MockDBConnection) Writer() db.DBWriter
Writer mocks base method.
type MockDBConnectionMockRecorder ¶
type MockDBConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockDBConnectionMockRecorder is the mock recorder for MockDBConnection.
func (*MockDBConnectionMockRecorder) Close ¶
func (mr *MockDBConnectionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDBConnectionMockRecorder) DeleteVersion ¶
func (mr *MockDBConnectionMockRecorder) DeleteVersion(arg0 interface{}) *gomock.Call
DeleteVersion indicates an expected call of DeleteVersion.
func (*MockDBConnectionMockRecorder) ReadWriter ¶
func (mr *MockDBConnectionMockRecorder) ReadWriter() *gomock.Call
ReadWriter indicates an expected call of ReadWriter.
func (*MockDBConnectionMockRecorder) Reader ¶
func (mr *MockDBConnectionMockRecorder) Reader() *gomock.Call
Reader indicates an expected call of Reader.
func (*MockDBConnectionMockRecorder) ReaderAt ¶
func (mr *MockDBConnectionMockRecorder) ReaderAt(arg0 interface{}) *gomock.Call
ReaderAt indicates an expected call of ReaderAt.
func (*MockDBConnectionMockRecorder) Revert ¶
func (mr *MockDBConnectionMockRecorder) Revert() *gomock.Call
Revert indicates an expected call of Revert.
func (*MockDBConnectionMockRecorder) SaveNextVersion ¶
func (mr *MockDBConnectionMockRecorder) SaveNextVersion() *gomock.Call
SaveNextVersion indicates an expected call of SaveNextVersion.
func (*MockDBConnectionMockRecorder) SaveVersion ¶
func (mr *MockDBConnectionMockRecorder) SaveVersion(arg0 interface{}) *gomock.Call
SaveVersion indicates an expected call of SaveVersion.
func (*MockDBConnectionMockRecorder) Versions ¶
func (mr *MockDBConnectionMockRecorder) Versions() *gomock.Call
Versions indicates an expected call of Versions.
func (*MockDBConnectionMockRecorder) Writer ¶
func (mr *MockDBConnectionMockRecorder) Writer() *gomock.Call
Writer indicates an expected call of Writer.
type MockDBReadWriter ¶
type MockDBReadWriter struct {
// contains filtered or unexported fields
}
MockDBReadWriter is a mock of DBReadWriter interface.
func NewMockDBReadWriter ¶
func NewMockDBReadWriter(ctrl *gomock.Controller) *MockDBReadWriter
NewMockDBReadWriter creates a new mock instance.
func (*MockDBReadWriter) Commit ¶
func (m *MockDBReadWriter) Commit() error
Commit mocks base method.
func (*MockDBReadWriter) Delete ¶
func (m *MockDBReadWriter) Delete(arg0 []byte) error
Delete mocks base method.
func (*MockDBReadWriter) Discard ¶
func (m *MockDBReadWriter) Discard() error
Discard mocks base method.
func (*MockDBReadWriter) EXPECT ¶
func (m *MockDBReadWriter) EXPECT() *MockDBReadWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBReadWriter) Get ¶
func (m *MockDBReadWriter) Get(arg0 []byte) ([]byte, error)
Get mocks base method.
func (*MockDBReadWriter) Has ¶
func (m *MockDBReadWriter) Has(key []byte) (bool, error)
Has mocks base method.
func (*MockDBReadWriter) Iterator ¶
func (m *MockDBReadWriter) Iterator(start, end []byte) (db.Iterator, error)
Iterator mocks base method.
func (*MockDBReadWriter) ReverseIterator ¶
func (m *MockDBReadWriter) ReverseIterator(start, end []byte) (db.Iterator, error)
ReverseIterator mocks base method.
func (*MockDBReadWriter) Set ¶
func (m *MockDBReadWriter) Set(arg0, arg1 []byte) error
Set mocks base method.
type MockDBReadWriterMockRecorder ¶
type MockDBReadWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockDBReadWriterMockRecorder is the mock recorder for MockDBReadWriter.
func (*MockDBReadWriterMockRecorder) Commit ¶
func (mr *MockDBReadWriterMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockDBReadWriterMockRecorder) Delete ¶
func (mr *MockDBReadWriterMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDBReadWriterMockRecorder) Discard ¶
func (mr *MockDBReadWriterMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockDBReadWriterMockRecorder) Get ¶
func (mr *MockDBReadWriterMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDBReadWriterMockRecorder) Has ¶
func (mr *MockDBReadWriterMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockDBReadWriterMockRecorder) Iterator ¶
func (mr *MockDBReadWriterMockRecorder) Iterator(start, end interface{}) *gomock.Call
Iterator indicates an expected call of Iterator.
func (*MockDBReadWriterMockRecorder) ReverseIterator ¶
func (mr *MockDBReadWriterMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
ReverseIterator indicates an expected call of ReverseIterator.
func (*MockDBReadWriterMockRecorder) Set ¶
func (mr *MockDBReadWriterMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockDBReader ¶
type MockDBReader struct {
// contains filtered or unexported fields
}
MockDBReader is a mock of DBReader interface.
func NewMockDBReader ¶
func NewMockDBReader(ctrl *gomock.Controller) *MockDBReader
NewMockDBReader creates a new mock instance.
func (*MockDBReader) EXPECT ¶
func (m *MockDBReader) EXPECT() *MockDBReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBReader) Get ¶
func (m *MockDBReader) Get(arg0 []byte) ([]byte, error)
Get mocks base method.
func (*MockDBReader) Has ¶
func (m *MockDBReader) Has(key []byte) (bool, error)
Has mocks base method.
func (*MockDBReader) Iterator ¶
func (m *MockDBReader) Iterator(start, end []byte) (db.Iterator, error)
Iterator mocks base method.
func (*MockDBReader) ReverseIterator ¶
func (m *MockDBReader) ReverseIterator(start, end []byte) (db.Iterator, error)
ReverseIterator mocks base method.
type MockDBReaderMockRecorder ¶
type MockDBReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockDBReaderMockRecorder is the mock recorder for MockDBReader.
func (*MockDBReaderMockRecorder) Discard ¶
func (mr *MockDBReaderMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockDBReaderMockRecorder) Get ¶
func (mr *MockDBReaderMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDBReaderMockRecorder) Has ¶
func (mr *MockDBReaderMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockDBReaderMockRecorder) Iterator ¶
func (mr *MockDBReaderMockRecorder) Iterator(start, end interface{}) *gomock.Call
Iterator indicates an expected call of Iterator.
func (*MockDBReaderMockRecorder) ReverseIterator ¶
func (mr *MockDBReaderMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
ReverseIterator indicates an expected call of ReverseIterator.
type MockDBWriter ¶
type MockDBWriter struct {
// contains filtered or unexported fields
}
MockDBWriter is a mock of DBWriter interface.
func NewMockDBWriter ¶
func NewMockDBWriter(ctrl *gomock.Controller) *MockDBWriter
NewMockDBWriter creates a new mock instance.
func (*MockDBWriter) Delete ¶
func (m *MockDBWriter) Delete(arg0 []byte) error
Delete mocks base method.
func (*MockDBWriter) EXPECT ¶
func (m *MockDBWriter) EXPECT() *MockDBWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBWriter) Set ¶
func (m *MockDBWriter) Set(arg0, arg1 []byte) error
Set mocks base method.
type MockDBWriterMockRecorder ¶
type MockDBWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockDBWriterMockRecorder is the mock recorder for MockDBWriter.
func (*MockDBWriterMockRecorder) Commit ¶
func (mr *MockDBWriterMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockDBWriterMockRecorder) Delete ¶
func (mr *MockDBWriterMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDBWriterMockRecorder) Discard ¶
func (mr *MockDBWriterMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockDBWriterMockRecorder) Set ¶
func (mr *MockDBWriterMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.
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) Domain ¶
func (m *MockIterator) Domain() ([]byte, []byte)
Domain mocks base method.
func (*MockIterator) EXPECT ¶
func (m *MockIterator) EXPECT() *MockIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIteratorMockRecorder ¶
type MockIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockIteratorMockRecorder is the mock recorder for MockIterator.
func (*MockIteratorMockRecorder) Close ¶
func (mr *MockIteratorMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockIteratorMockRecorder) Domain ¶
func (mr *MockIteratorMockRecorder) Domain() *gomock.Call
Domain indicates an expected call of Domain.
func (*MockIteratorMockRecorder) Error ¶
func (mr *MockIteratorMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockIteratorMockRecorder) Key ¶
func (mr *MockIteratorMockRecorder) Key() *gomock.Call
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) Value ¶
func (mr *MockIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.
type MockVersionIterator ¶
type MockVersionIterator struct {
// contains filtered or unexported fields
}
MockVersionIterator is a mock of VersionIterator interface.
func NewMockVersionIterator ¶
func NewMockVersionIterator(ctrl *gomock.Controller) *MockVersionIterator
NewMockVersionIterator creates a new mock instance.
func (*MockVersionIterator) EXPECT ¶
func (m *MockVersionIterator) EXPECT() *MockVersionIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVersionIterator) Next ¶
func (m *MockVersionIterator) Next() bool
Next mocks base method.
func (*MockVersionIterator) Value ¶
func (m *MockVersionIterator) Value() uint64
Value mocks base method.
type MockVersionIteratorMockRecorder ¶
type MockVersionIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockVersionIteratorMockRecorder is the mock recorder for MockVersionIterator.
func (*MockVersionIteratorMockRecorder) Next ¶
func (mr *MockVersionIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockVersionIteratorMockRecorder) Value ¶
func (mr *MockVersionIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.
type MockVersionSet ¶
type MockVersionSet struct {
// contains filtered or unexported fields
}
MockVersionSet is a mock of VersionSet interface.
func NewMockVersionSet ¶
func NewMockVersionSet(ctrl *gomock.Controller) *MockVersionSet
NewMockVersionSet creates a new mock instance.
func (*MockVersionSet) EXPECT ¶
func (m *MockVersionSet) EXPECT() *MockVersionSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVersionSet) Equal ¶
func (m *MockVersionSet) Equal(arg0 db.VersionSet) bool
Equal mocks base method.
func (*MockVersionSet) Exists ¶
func (m *MockVersionSet) Exists(arg0 uint64) bool
Exists mocks base method.
func (*MockVersionSet) Iterator ¶
func (m *MockVersionSet) Iterator() db.VersionIterator
Iterator mocks base method.
type MockVersionSetMockRecorder ¶
type MockVersionSetMockRecorder struct {
// contains filtered or unexported fields
}
MockVersionSetMockRecorder is the mock recorder for MockVersionSet.
func (*MockVersionSetMockRecorder) Count ¶
func (mr *MockVersionSetMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
func (*MockVersionSetMockRecorder) Equal ¶
func (mr *MockVersionSetMockRecorder) Equal(arg0 interface{}) *gomock.Call
Equal indicates an expected call of Equal.
func (*MockVersionSetMockRecorder) Exists ¶
func (mr *MockVersionSetMockRecorder) Exists(arg0 interface{}) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockVersionSetMockRecorder) Iterator ¶
func (mr *MockVersionSetMockRecorder) Iterator() *gomock.Call
Iterator indicates an expected call of Iterator.
func (*MockVersionSetMockRecorder) Last ¶
func (mr *MockVersionSetMockRecorder) Last() *gomock.Call
Last indicates an expected call of Last.