Documentation ¶
Overview ¶
Package mock_chainmanager is a generated GoMock package.
Index ¶
- type MockDock
- type MockDockMockRecorder
- type MockStateManager
- func (m *MockStateManager) DelState(arg0 ...protocol.StateOption) (uint64, error)
- func (m *MockStateManager) EXPECT() *MockStateManagerMockRecorder
- func (m *MockStateManager) Height() (uint64, error)
- func (m *MockStateManager) Load(arg0, arg1 string, arg2 interface{}) error
- func (m *MockStateManager) ProtocolDirty(arg0 string) bool
- func (m *MockStateManager) PutState(arg0 interface{}, arg1 ...protocol.StateOption) (uint64, error)
- func (m *MockStateManager) ReadView(arg0 string) (interface{}, error)
- func (m *MockStateManager) Reset()
- func (m *MockStateManager) Revert(arg0 int) error
- func (m *MockStateManager) Snapshot() int
- func (m *MockStateManager) State(arg0 interface{}, arg1 ...protocol.StateOption) (uint64, error)
- func (m *MockStateManager) States(arg0 ...protocol.StateOption) (uint64, state.Iterator, error)
- func (m *MockStateManager) Unload(arg0, arg1 string, arg2 interface{}) error
- func (m *MockStateManager) WriteView(arg0 string, arg1 interface{}) error
- type MockStateManagerMockRecorder
- func (mr *MockStateManagerMockRecorder) DelState(arg0 ...interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) Height() *gomock.Call
- func (mr *MockStateManagerMockRecorder) Load(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) ProtocolDirty(arg0 interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) PutState(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) ReadView(arg0 interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) Reset() *gomock.Call
- func (mr *MockStateManagerMockRecorder) Revert(arg0 interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) Snapshot() *gomock.Call
- func (mr *MockStateManagerMockRecorder) State(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) States(arg0 ...interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) Unload(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) WriteView(arg0, arg1 interface{}) *gomock.Call
- type MockStateReader
- func (m *MockStateReader) EXPECT() *MockStateReaderMockRecorder
- func (m *MockStateReader) Height() (uint64, error)
- func (m *MockStateReader) ReadView(arg0 string) (interface{}, error)
- func (m *MockStateReader) State(arg0 interface{}, arg1 ...protocol.StateOption) (uint64, error)
- func (m *MockStateReader) States(arg0 ...protocol.StateOption) (uint64, state.Iterator, error)
- type MockStateReaderMockRecorder
- func (mr *MockStateReaderMockRecorder) Height() *gomock.Call
- func (mr *MockStateReaderMockRecorder) ReadView(arg0 interface{}) *gomock.Call
- func (mr *MockStateReaderMockRecorder) State(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockStateReaderMockRecorder) States(arg0 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDock ¶ added in v1.0.0
type MockDock struct {
// contains filtered or unexported fields
}
MockDock is a mock of Dock interface.
func NewMockDock ¶ added in v1.0.0
func NewMockDock(ctrl *gomock.Controller) *MockDock
NewMockDock creates a new mock instance.
func (*MockDock) EXPECT ¶ added in v1.0.0
func (m *MockDock) EXPECT() *MockDockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDock) ProtocolDirty ¶ added in v1.0.0
ProtocolDirty mocks base method.
type MockDockMockRecorder ¶ added in v1.0.0
type MockDockMockRecorder struct {
// contains filtered or unexported fields
}
MockDockMockRecorder is the mock recorder for MockDock.
func (*MockDockMockRecorder) Load ¶ added in v1.0.0
func (mr *MockDockMockRecorder) Load(arg0, arg1, arg2 interface{}) *gomock.Call
Load indicates an expected call of Load.
func (*MockDockMockRecorder) ProtocolDirty ¶ added in v1.0.0
func (mr *MockDockMockRecorder) ProtocolDirty(arg0 interface{}) *gomock.Call
ProtocolDirty indicates an expected call of ProtocolDirty.
func (*MockDockMockRecorder) Reset ¶ added in v1.0.0
func (mr *MockDockMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockDockMockRecorder) Unload ¶ added in v1.0.0
func (mr *MockDockMockRecorder) Unload(arg0, arg1, arg2 interface{}) *gomock.Call
Unload indicates an expected call of Unload.
type MockStateManager ¶
type MockStateManager struct {
// contains filtered or unexported fields
}
MockStateManager is a mock of StateManager interface.
func NewMockStateManager ¶
func NewMockStateManager(ctrl *gomock.Controller) *MockStateManager
NewMockStateManager creates a new mock instance.
func (*MockStateManager) DelState ¶
func (m *MockStateManager) DelState(arg0 ...protocol.StateOption) (uint64, error)
DelState mocks base method.
func (*MockStateManager) EXPECT ¶
func (m *MockStateManager) EXPECT() *MockStateManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateManager) Height ¶
func (m *MockStateManager) Height() (uint64, error)
Height mocks base method.
func (*MockStateManager) Load ¶ added in v1.0.0
func (m *MockStateManager) Load(arg0, arg1 string, arg2 interface{}) error
Load mocks base method.
func (*MockStateManager) ProtocolDirty ¶ added in v1.0.0
func (m *MockStateManager) ProtocolDirty(arg0 string) bool
ProtocolDirty mocks base method.
func (*MockStateManager) PutState ¶
func (m *MockStateManager) PutState(arg0 interface{}, arg1 ...protocol.StateOption) (uint64, error)
PutState mocks base method.
func (*MockStateManager) ReadView ¶ added in v1.0.0
func (m *MockStateManager) ReadView(arg0 string) (interface{}, error)
ReadView mocks base method.
func (*MockStateManager) Reset ¶ added in v1.0.0
func (m *MockStateManager) Reset()
Reset mocks base method.
func (*MockStateManager) Revert ¶
func (m *MockStateManager) Revert(arg0 int) error
Revert mocks base method.
func (*MockStateManager) Snapshot ¶
func (m *MockStateManager) Snapshot() int
Snapshot mocks base method.
func (*MockStateManager) State ¶
func (m *MockStateManager) State(arg0 interface{}, arg1 ...protocol.StateOption) (uint64, error)
State mocks base method.
func (*MockStateManager) States ¶ added in v0.11.0
func (m *MockStateManager) States(arg0 ...protocol.StateOption) (uint64, state.Iterator, error)
States mocks base method.
func (*MockStateManager) Unload ¶ added in v1.0.0
func (m *MockStateManager) Unload(arg0, arg1 string, arg2 interface{}) error
Unload mocks base method.
func (*MockStateManager) WriteView ¶ added in v1.0.0
func (m *MockStateManager) WriteView(arg0 string, arg1 interface{}) error
WriteView mocks base method.
type MockStateManagerMockRecorder ¶
type MockStateManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockStateManagerMockRecorder is the mock recorder for MockStateManager.
func (*MockStateManagerMockRecorder) DelState ¶
func (mr *MockStateManagerMockRecorder) DelState(arg0 ...interface{}) *gomock.Call
DelState indicates an expected call of DelState.
func (*MockStateManagerMockRecorder) Height ¶
func (mr *MockStateManagerMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height.
func (*MockStateManagerMockRecorder) Load ¶ added in v1.0.0
func (mr *MockStateManagerMockRecorder) Load(arg0, arg1, arg2 interface{}) *gomock.Call
Load indicates an expected call of Load.
func (*MockStateManagerMockRecorder) ProtocolDirty ¶ added in v1.0.0
func (mr *MockStateManagerMockRecorder) ProtocolDirty(arg0 interface{}) *gomock.Call
ProtocolDirty indicates an expected call of ProtocolDirty.
func (*MockStateManagerMockRecorder) PutState ¶
func (mr *MockStateManagerMockRecorder) PutState(arg0 interface{}, arg1 ...interface{}) *gomock.Call
PutState indicates an expected call of PutState.
func (*MockStateManagerMockRecorder) ReadView ¶ added in v1.0.0
func (mr *MockStateManagerMockRecorder) ReadView(arg0 interface{}) *gomock.Call
ReadView indicates an expected call of ReadView.
func (*MockStateManagerMockRecorder) Reset ¶ added in v1.0.0
func (mr *MockStateManagerMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockStateManagerMockRecorder) Revert ¶
func (mr *MockStateManagerMockRecorder) Revert(arg0 interface{}) *gomock.Call
Revert indicates an expected call of Revert.
func (*MockStateManagerMockRecorder) Snapshot ¶
func (mr *MockStateManagerMockRecorder) Snapshot() *gomock.Call
Snapshot indicates an expected call of Snapshot.
func (*MockStateManagerMockRecorder) State ¶
func (mr *MockStateManagerMockRecorder) State(arg0 interface{}, arg1 ...interface{}) *gomock.Call
State indicates an expected call of State.
func (*MockStateManagerMockRecorder) States ¶ added in v0.11.0
func (mr *MockStateManagerMockRecorder) States(arg0 ...interface{}) *gomock.Call
States indicates an expected call of States.
func (*MockStateManagerMockRecorder) Unload ¶ added in v1.0.0
func (mr *MockStateManagerMockRecorder) Unload(arg0, arg1, arg2 interface{}) *gomock.Call
Unload indicates an expected call of Unload.
func (*MockStateManagerMockRecorder) WriteView ¶ added in v1.0.0
func (mr *MockStateManagerMockRecorder) WriteView(arg0, arg1 interface{}) *gomock.Call
WriteView indicates an expected call of WriteView.
type MockStateReader ¶ added in v0.11.0
type MockStateReader struct {
// contains filtered or unexported fields
}
MockStateReader is a mock of StateReader interface.
func NewMockStateReader ¶ added in v0.11.0
func NewMockStateReader(ctrl *gomock.Controller) *MockStateReader
NewMockStateReader creates a new mock instance.
func (*MockStateReader) EXPECT ¶ added in v0.11.0
func (m *MockStateReader) EXPECT() *MockStateReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateReader) Height ¶ added in v0.11.0
func (m *MockStateReader) Height() (uint64, error)
Height mocks base method.
func (*MockStateReader) ReadView ¶ added in v1.0.0
func (m *MockStateReader) ReadView(arg0 string) (interface{}, error)
ReadView mocks base method.
func (*MockStateReader) State ¶ added in v0.11.0
func (m *MockStateReader) State(arg0 interface{}, arg1 ...protocol.StateOption) (uint64, error)
State mocks base method.
func (*MockStateReader) States ¶ added in v0.11.0
func (m *MockStateReader) States(arg0 ...protocol.StateOption) (uint64, state.Iterator, error)
States mocks base method.
type MockStateReaderMockRecorder ¶ added in v0.11.0
type MockStateReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockStateReaderMockRecorder is the mock recorder for MockStateReader.
func (*MockStateReaderMockRecorder) Height ¶ added in v0.11.0
func (mr *MockStateReaderMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height.
func (*MockStateReaderMockRecorder) ReadView ¶ added in v1.0.0
func (mr *MockStateReaderMockRecorder) ReadView(arg0 interface{}) *gomock.Call
ReadView indicates an expected call of ReadView.
func (*MockStateReaderMockRecorder) State ¶ added in v0.11.0
func (mr *MockStateReaderMockRecorder) State(arg0 interface{}, arg1 ...interface{}) *gomock.Call
State indicates an expected call of State.
func (*MockStateReaderMockRecorder) States ¶ added in v0.11.0
func (mr *MockStateReaderMockRecorder) States(arg0 ...interface{}) *gomock.Call
States indicates an expected call of States.