Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockConnection
- func (m *MockConnection) Close() error
- func (m *MockConnection) DeleteVersion(arg0 uint64) error
- func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
- func (m *MockConnection) ReadWriter() db.ReadWriter
- func (m *MockConnection) Reader() db.Reader
- func (m *MockConnection) ReaderAt(arg0 uint64) (db.Reader, error)
- func (m *MockConnection) Revert() error
- func (m *MockConnection) SaveNextVersion() (uint64, error)
- func (m *MockConnection) SaveVersion(arg0 uint64) error
- func (m *MockConnection) Versions() (db.VersionSet, error)
- func (m *MockConnection) Writer() db.Writer
- type MockConnectionMockRecorder
- func (mr *MockConnectionMockRecorder) Close() *gomock.Call
- func (mr *MockConnectionMockRecorder) DeleteVersion(arg0 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) ReadWriter() *gomock.Call
- func (mr *MockConnectionMockRecorder) Reader() *gomock.Call
- func (mr *MockConnectionMockRecorder) ReaderAt(arg0 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Revert() *gomock.Call
- func (mr *MockConnectionMockRecorder) SaveNextVersion() *gomock.Call
- func (mr *MockConnectionMockRecorder) SaveVersion(arg0 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Versions() *gomock.Call
- func (mr *MockConnectionMockRecorder) Writer() *gomock.Call
- 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 MockReadWriter
- func (m *MockReadWriter) Commit() error
- func (m *MockReadWriter) Delete(arg0 []byte) error
- func (m *MockReadWriter) Discard() error
- func (m *MockReadWriter) EXPECT() *MockReadWriterMockRecorder
- func (m *MockReadWriter) Get(arg0 []byte) ([]byte, error)
- func (m *MockReadWriter) Has(key []byte) (bool, error)
- func (m *MockReadWriter) Iterator(start, end []byte) (db.Iterator, error)
- func (m *MockReadWriter) ReverseIterator(start, end []byte) (db.Iterator, error)
- func (m *MockReadWriter) Set(arg0, arg1 []byte) error
- type MockReadWriterMockRecorder
- func (mr *MockReadWriterMockRecorder) Commit() *gomock.Call
- func (mr *MockReadWriterMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Discard() *gomock.Call
- func (mr *MockReadWriterMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Iterator(start, end interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- type MockReader
- func (m *MockReader) Discard() error
- func (m *MockReader) EXPECT() *MockReaderMockRecorder
- func (m *MockReader) Get(arg0 []byte) ([]byte, error)
- func (m *MockReader) Has(key []byte) (bool, error)
- func (m *MockReader) Iterator(start, end []byte) (db.Iterator, error)
- func (m *MockReader) ReverseIterator(start, end []byte) (db.Iterator, error)
- type MockReaderMockRecorder
- func (mr *MockReaderMockRecorder) Discard() *gomock.Call
- func (mr *MockReaderMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) Iterator(start, end interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) ReverseIterator(start, end interface{}) *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
- type MockWriter
- type MockWriterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
MockConnection is a mock of Connection interface.
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
NewMockConnection creates a new mock instance.
func (*MockConnection) DeleteVersion ¶
func (m *MockConnection) DeleteVersion(arg0 uint64) error
DeleteVersion mocks base method.
func (*MockConnection) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnection) ReadWriter ¶
func (m *MockConnection) ReadWriter() db.ReadWriter
ReadWriter mocks base method.
func (*MockConnection) Reader ¶
func (m *MockConnection) Reader() db.Reader
Reader mocks base method.
func (*MockConnection) ReaderAt ¶
func (m *MockConnection) ReaderAt(arg0 uint64) (db.Reader, error)
ReaderAt mocks base method.
func (*MockConnection) SaveNextVersion ¶
func (m *MockConnection) SaveNextVersion() (uint64, error)
SaveNextVersion mocks base method.
func (*MockConnection) SaveVersion ¶
func (m *MockConnection) SaveVersion(arg0 uint64) error
SaveVersion mocks base method.
func (*MockConnection) Versions ¶
func (m *MockConnection) Versions() (db.VersionSet, error)
Versions mocks base method.
func (*MockConnection) Writer ¶
func (m *MockConnection) Writer() db.Writer
Writer mocks base method.
type MockConnectionMockRecorder ¶
type MockConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionMockRecorder is the mock recorder for MockConnection.
func (*MockConnectionMockRecorder) Close ¶
func (mr *MockConnectionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConnectionMockRecorder) DeleteVersion ¶
func (mr *MockConnectionMockRecorder) DeleteVersion(arg0 interface{}) *gomock.Call
DeleteVersion indicates an expected call of DeleteVersion.
func (*MockConnectionMockRecorder) ReadWriter ¶
func (mr *MockConnectionMockRecorder) ReadWriter() *gomock.Call
ReadWriter indicates an expected call of ReadWriter.
func (*MockConnectionMockRecorder) Reader ¶
func (mr *MockConnectionMockRecorder) Reader() *gomock.Call
Reader indicates an expected call of Reader.
func (*MockConnectionMockRecorder) ReaderAt ¶
func (mr *MockConnectionMockRecorder) ReaderAt(arg0 interface{}) *gomock.Call
ReaderAt indicates an expected call of ReaderAt.
func (*MockConnectionMockRecorder) Revert ¶
func (mr *MockConnectionMockRecorder) Revert() *gomock.Call
Revert indicates an expected call of Revert.
func (*MockConnectionMockRecorder) SaveNextVersion ¶
func (mr *MockConnectionMockRecorder) SaveNextVersion() *gomock.Call
SaveNextVersion indicates an expected call of SaveNextVersion.
func (*MockConnectionMockRecorder) SaveVersion ¶
func (mr *MockConnectionMockRecorder) SaveVersion(arg0 interface{}) *gomock.Call
SaveVersion indicates an expected call of SaveVersion.
func (*MockConnectionMockRecorder) Versions ¶
func (mr *MockConnectionMockRecorder) Versions() *gomock.Call
Versions indicates an expected call of Versions.
func (*MockConnectionMockRecorder) Writer ¶
func (mr *MockConnectionMockRecorder) Writer() *gomock.Call
Writer indicates an expected call of Writer.
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 MockReadWriter ¶
type MockReadWriter struct {
// contains filtered or unexported fields
}
MockReadWriter is a mock of ReadWriter interface.
func NewMockReadWriter ¶
func NewMockReadWriter(ctrl *gomock.Controller) *MockReadWriter
NewMockReadWriter creates a new mock instance.
func (*MockReadWriter) Delete ¶
func (m *MockReadWriter) Delete(arg0 []byte) error
Delete mocks base method.
func (*MockReadWriter) Discard ¶
func (m *MockReadWriter) Discard() error
Discard mocks base method.
func (*MockReadWriter) EXPECT ¶
func (m *MockReadWriter) EXPECT() *MockReadWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReadWriter) Get ¶
func (m *MockReadWriter) Get(arg0 []byte) ([]byte, error)
Get mocks base method.
func (*MockReadWriter) Has ¶
func (m *MockReadWriter) Has(key []byte) (bool, error)
Has mocks base method.
func (*MockReadWriter) Iterator ¶
func (m *MockReadWriter) Iterator(start, end []byte) (db.Iterator, error)
Iterator mocks base method.
func (*MockReadWriter) ReverseIterator ¶
func (m *MockReadWriter) ReverseIterator(start, end []byte) (db.Iterator, error)
ReverseIterator mocks base method.
func (*MockReadWriter) Set ¶
func (m *MockReadWriter) Set(arg0, arg1 []byte) error
Set mocks base method.
type MockReadWriterMockRecorder ¶
type MockReadWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockReadWriterMockRecorder is the mock recorder for MockReadWriter.
func (*MockReadWriterMockRecorder) Commit ¶
func (mr *MockReadWriterMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockReadWriterMockRecorder) Delete ¶
func (mr *MockReadWriterMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockReadWriterMockRecorder) Discard ¶
func (mr *MockReadWriterMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockReadWriterMockRecorder) Get ¶
func (mr *MockReadWriterMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockReadWriterMockRecorder) Has ¶
func (mr *MockReadWriterMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockReadWriterMockRecorder) Iterator ¶
func (mr *MockReadWriterMockRecorder) Iterator(start, end interface{}) *gomock.Call
Iterator indicates an expected call of Iterator.
func (*MockReadWriterMockRecorder) ReverseIterator ¶
func (mr *MockReadWriterMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
ReverseIterator indicates an expected call of ReverseIterator.
func (*MockReadWriterMockRecorder) Set ¶
func (mr *MockReadWriterMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockReader ¶
type MockReader struct {
// contains filtered or unexported fields
}
MockReader is a mock of Reader interface.
func NewMockReader ¶
func NewMockReader(ctrl *gomock.Controller) *MockReader
NewMockReader creates a new mock instance.
func (*MockReader) EXPECT ¶
func (m *MockReader) EXPECT() *MockReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReader) Get ¶
func (m *MockReader) Get(arg0 []byte) ([]byte, error)
Get mocks base method.
func (*MockReader) Iterator ¶
func (m *MockReader) Iterator(start, end []byte) (db.Iterator, error)
Iterator mocks base method.
func (*MockReader) ReverseIterator ¶
func (m *MockReader) ReverseIterator(start, end []byte) (db.Iterator, error)
ReverseIterator mocks base method.
type MockReaderMockRecorder ¶
type MockReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockReaderMockRecorder is the mock recorder for MockReader.
func (*MockReaderMockRecorder) Discard ¶
func (mr *MockReaderMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockReaderMockRecorder) Get ¶
func (mr *MockReaderMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockReaderMockRecorder) Has ¶
func (mr *MockReaderMockRecorder) Has(key interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockReaderMockRecorder) Iterator ¶
func (mr *MockReaderMockRecorder) Iterator(start, end interface{}) *gomock.Call
Iterator indicates an expected call of Iterator.
func (*MockReaderMockRecorder) ReverseIterator ¶
func (mr *MockReaderMockRecorder) ReverseIterator(start, end interface{}) *gomock.Call
ReverseIterator indicates an expected call of ReverseIterator.
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.
type MockWriter ¶
type MockWriter struct {
// contains filtered or unexported fields
}
MockWriter is a mock of Writer interface.
func NewMockWriter ¶
func NewMockWriter(ctrl *gomock.Controller) *MockWriter
NewMockWriter creates a new mock instance.
func (*MockWriter) Delete ¶
func (m *MockWriter) Delete(arg0 []byte) error
Delete mocks base method.
func (*MockWriter) EXPECT ¶
func (m *MockWriter) EXPECT() *MockWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWriterMockRecorder ¶
type MockWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockWriterMockRecorder is the mock recorder for MockWriter.
func (*MockWriterMockRecorder) Commit ¶
func (mr *MockWriterMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockWriterMockRecorder) Delete ¶
func (mr *MockWriterMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockWriterMockRecorder) Discard ¶
func (mr *MockWriterMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockWriterMockRecorder) Set ¶
func (mr *MockWriterMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.