Documentation ¶
Overview ¶
Package mock_chainmanager is a generated GoMock package.
Index ¶
- type MockActionEnvelopeValidator
- type MockActionEnvelopeValidatorMockRecorder
- type MockActionHandler
- type MockActionHandlerMockRecorder
- type MockActionValidator
- type MockActionValidatorMockRecorder
- type MockChainManager
- func (m *MockChainManager) CandidatesByHeight(height uint64) ([]*state.Candidate, error)
- func (m *MockChainManager) ChainID() uint32
- func (m *MockChainManager) EXPECT() *MockChainManagerMockRecorder
- func (m *MockChainManager) ExecuteContractRead(caller address.Address, ex *action.Execution) ([]byte, *action.Receipt, error)
- func (m *MockChainManager) GetHashByHeight(height uint64) (hash.Hash256, error)
- func (m *MockChainManager) Nonce(addr string) (uint64, error)
- func (m *MockChainManager) ProductivityByEpoch(epochNum uint64) (uint64, map[string]uint64, error)
- func (m *MockChainManager) StateByAddr(address string) (*state.Account, error)
- type MockChainManagerMockRecorder
- func (mr *MockChainManagerMockRecorder) CandidatesByHeight(height interface{}) *gomock.Call
- func (mr *MockChainManagerMockRecorder) ChainID() *gomock.Call
- func (mr *MockChainManagerMockRecorder) ExecuteContractRead(caller, ex interface{}) *gomock.Call
- func (mr *MockChainManagerMockRecorder) GetHashByHeight(height interface{}) *gomock.Call
- func (mr *MockChainManagerMockRecorder) Nonce(addr interface{}) *gomock.Call
- func (mr *MockChainManagerMockRecorder) ProductivityByEpoch(epochNum interface{}) *gomock.Call
- func (mr *MockChainManagerMockRecorder) StateByAddr(address interface{}) *gomock.Call
- type MockProtocol
- func (m *MockProtocol) EXPECT() *MockProtocolMockRecorder
- func (m *MockProtocol) Handle(arg0 context.Context, arg1 action.Action, arg2 protocol.StateManager) (*action.Receipt, error)
- func (m *MockProtocol) ReadState(arg0 context.Context, arg1 protocol.StateManager, arg2 []byte, arg3 ...[]byte) ([]byte, error)
- func (m *MockProtocol) Validate(arg0 context.Context, arg1 action.Action) error
- type MockProtocolMockRecorder
- type MockStateManager
- func (m *MockStateManager) DelState(pkHash hash.Hash160) error
- func (m *MockStateManager) EXPECT() *MockStateManagerMockRecorder
- func (m *MockStateManager) GetCachedBatch() db.CachedBatch
- func (m *MockStateManager) GetDB() db.KVStore
- func (m *MockStateManager) Height() uint64
- func (m *MockStateManager) PutState(arg0 hash.Hash160, arg1 interface{}) error
- func (m *MockStateManager) Revert(arg0 int) error
- func (m *MockStateManager) Snapshot() int
- func (m *MockStateManager) State(arg0 hash.Hash160, arg1 interface{}) error
- type MockStateManagerMockRecorder
- func (mr *MockStateManagerMockRecorder) DelState(pkHash interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) GetCachedBatch() *gomock.Call
- func (mr *MockStateManagerMockRecorder) GetDB() *gomock.Call
- func (mr *MockStateManagerMockRecorder) Height() *gomock.Call
- func (mr *MockStateManagerMockRecorder) PutState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) Revert(arg0 interface{}) *gomock.Call
- func (mr *MockStateManagerMockRecorder) Snapshot() *gomock.Call
- func (mr *MockStateManagerMockRecorder) State(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockActionEnvelopeValidator ¶
type MockActionEnvelopeValidator struct {
// contains filtered or unexported fields
}
MockActionEnvelopeValidator is a mock of ActionEnvelopeValidator interface
func NewMockActionEnvelopeValidator ¶
func NewMockActionEnvelopeValidator(ctrl *gomock.Controller) *MockActionEnvelopeValidator
NewMockActionEnvelopeValidator creates a new mock instance
func (*MockActionEnvelopeValidator) EXPECT ¶
func (m *MockActionEnvelopeValidator) EXPECT() *MockActionEnvelopeValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockActionEnvelopeValidator) Validate ¶
func (m *MockActionEnvelopeValidator) Validate(arg0 context.Context, arg1 action.SealedEnvelope) error
Validate mocks base method
type MockActionEnvelopeValidatorMockRecorder ¶
type MockActionEnvelopeValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockActionEnvelopeValidatorMockRecorder is the mock recorder for MockActionEnvelopeValidator
func (*MockActionEnvelopeValidatorMockRecorder) Validate ¶
func (mr *MockActionEnvelopeValidatorMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate
type MockActionHandler ¶
type MockActionHandler struct {
// contains filtered or unexported fields
}
MockActionHandler is a mock of ActionHandler interface
func NewMockActionHandler ¶
func NewMockActionHandler(ctrl *gomock.Controller) *MockActionHandler
NewMockActionHandler creates a new mock instance
func (*MockActionHandler) EXPECT ¶
func (m *MockActionHandler) EXPECT() *MockActionHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockActionHandlerMockRecorder ¶
type MockActionHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockActionHandlerMockRecorder is the mock recorder for MockActionHandler
func (*MockActionHandlerMockRecorder) Handle ¶
func (mr *MockActionHandlerMockRecorder) Handle(arg0, arg1, arg2 interface{}) *gomock.Call
Handle indicates an expected call of Handle
type MockActionValidator ¶
type MockActionValidator struct {
// contains filtered or unexported fields
}
MockActionValidator is a mock of ActionValidator interface
func NewMockActionValidator ¶
func NewMockActionValidator(ctrl *gomock.Controller) *MockActionValidator
NewMockActionValidator creates a new mock instance
func (*MockActionValidator) EXPECT ¶
func (m *MockActionValidator) EXPECT() *MockActionValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockActionValidatorMockRecorder ¶
type MockActionValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockActionValidatorMockRecorder is the mock recorder for MockActionValidator
func (*MockActionValidatorMockRecorder) Validate ¶
func (mr *MockActionValidatorMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate
type MockChainManager ¶
type MockChainManager struct {
// contains filtered or unexported fields
}
MockChainManager is a mock of ChainManager interface
func NewMockChainManager ¶
func NewMockChainManager(ctrl *gomock.Controller) *MockChainManager
NewMockChainManager creates a new mock instance
func (*MockChainManager) CandidatesByHeight ¶ added in v0.5.0
func (m *MockChainManager) CandidatesByHeight(height uint64) ([]*state.Candidate, error)
CandidatesByHeight mocks base method
func (*MockChainManager) ChainID ¶
func (m *MockChainManager) ChainID() uint32
ChainID mocks base method
func (*MockChainManager) EXPECT ¶
func (m *MockChainManager) EXPECT() *MockChainManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockChainManager) ExecuteContractRead ¶ added in v0.8.4
func (m *MockChainManager) ExecuteContractRead(caller address.Address, ex *action.Execution) ([]byte, *action.Receipt, error)
ExecuteContractRead mocks base method
func (*MockChainManager) GetHashByHeight ¶
func (m *MockChainManager) GetHashByHeight(height uint64) (hash.Hash256, error)
GetHashByHeight mocks base method
func (*MockChainManager) Nonce ¶
func (m *MockChainManager) Nonce(addr string) (uint64, error)
Nonce mocks base method
func (*MockChainManager) ProductivityByEpoch ¶ added in v0.5.0
ProductivityByEpoch mocks base method
func (*MockChainManager) StateByAddr ¶
func (m *MockChainManager) StateByAddr(address string) (*state.Account, error)
StateByAddr mocks base method
type MockChainManagerMockRecorder ¶
type MockChainManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockChainManagerMockRecorder is the mock recorder for MockChainManager
func (*MockChainManagerMockRecorder) CandidatesByHeight ¶ added in v0.5.0
func (mr *MockChainManagerMockRecorder) CandidatesByHeight(height interface{}) *gomock.Call
CandidatesByHeight indicates an expected call of CandidatesByHeight
func (*MockChainManagerMockRecorder) ChainID ¶
func (mr *MockChainManagerMockRecorder) ChainID() *gomock.Call
ChainID indicates an expected call of ChainID
func (*MockChainManagerMockRecorder) ExecuteContractRead ¶ added in v0.8.4
func (mr *MockChainManagerMockRecorder) ExecuteContractRead(caller, ex interface{}) *gomock.Call
ExecuteContractRead indicates an expected call of ExecuteContractRead
func (*MockChainManagerMockRecorder) GetHashByHeight ¶
func (mr *MockChainManagerMockRecorder) GetHashByHeight(height interface{}) *gomock.Call
GetHashByHeight indicates an expected call of GetHashByHeight
func (*MockChainManagerMockRecorder) Nonce ¶
func (mr *MockChainManagerMockRecorder) Nonce(addr interface{}) *gomock.Call
Nonce indicates an expected call of Nonce
func (*MockChainManagerMockRecorder) ProductivityByEpoch ¶ added in v0.5.0
func (mr *MockChainManagerMockRecorder) ProductivityByEpoch(epochNum interface{}) *gomock.Call
ProductivityByEpoch indicates an expected call of ProductivityByEpoch
func (*MockChainManagerMockRecorder) StateByAddr ¶
func (mr *MockChainManagerMockRecorder) StateByAddr(address interface{}) *gomock.Call
StateByAddr indicates an expected call of StateByAddr
type MockProtocol ¶
type MockProtocol struct {
// contains filtered or unexported fields
}
MockProtocol is a mock of Protocol interface
func NewMockProtocol ¶
func NewMockProtocol(ctrl *gomock.Controller) *MockProtocol
NewMockProtocol creates a new mock instance
func (*MockProtocol) EXPECT ¶
func (m *MockProtocol) EXPECT() *MockProtocolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockProtocol) Handle ¶
func (m *MockProtocol) Handle(arg0 context.Context, arg1 action.Action, arg2 protocol.StateManager) (*action.Receipt, error)
Handle mocks base method
type MockProtocolMockRecorder ¶
type MockProtocolMockRecorder struct {
// contains filtered or unexported fields
}
MockProtocolMockRecorder is the mock recorder for MockProtocol
func (*MockProtocolMockRecorder) Handle ¶
func (mr *MockProtocolMockRecorder) Handle(arg0, arg1, arg2 interface{}) *gomock.Call
Handle indicates an expected call of Handle
func (*MockProtocolMockRecorder) ReadState ¶ added in v0.5.0
func (mr *MockProtocolMockRecorder) ReadState(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
ReadState indicates an expected call of ReadState
func (*MockProtocolMockRecorder) Validate ¶
func (mr *MockProtocolMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate
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(pkHash hash.Hash160) 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) GetCachedBatch ¶
func (m *MockStateManager) GetCachedBatch() db.CachedBatch
GetCachedBatch mocks base method
func (*MockStateManager) GetDB ¶
func (m *MockStateManager) GetDB() db.KVStore
GetDB mocks base method
func (*MockStateManager) Height ¶
func (m *MockStateManager) Height() uint64
Height mocks base method
func (*MockStateManager) PutState ¶
func (m *MockStateManager) PutState(arg0 hash.Hash160, arg1 interface{}) error
PutState 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
type MockStateManagerMockRecorder ¶
type MockStateManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockStateManagerMockRecorder is the mock recorder for MockStateManager
func (*MockStateManagerMockRecorder) DelState ¶
func (mr *MockStateManagerMockRecorder) DelState(pkHash interface{}) *gomock.Call
DelState indicates an expected call of DelState
func (*MockStateManagerMockRecorder) GetCachedBatch ¶
func (mr *MockStateManagerMockRecorder) GetCachedBatch() *gomock.Call
GetCachedBatch indicates an expected call of GetCachedBatch
func (*MockStateManagerMockRecorder) GetDB ¶
func (mr *MockStateManagerMockRecorder) GetDB() *gomock.Call
GetDB indicates an expected call of GetDB
func (*MockStateManagerMockRecorder) Height ¶
func (mr *MockStateManagerMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height
func (*MockStateManagerMockRecorder) PutState ¶
func (mr *MockStateManagerMockRecorder) PutState(arg0, arg1 interface{}) *gomock.Call
PutState indicates an expected call of PutState
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, arg1 interface{}) *gomock.Call
State indicates an expected call of State