iotex-core: github.com/iotexproject/iotex-core/test/mock/mock_chainmanager Index | Files

package mock_chainmanager

import "github.com/iotexproject/iotex-core/test/mock/mock_chainmanager"

Package mock_chainmanager is a generated GoMock package.

Index

Package Files

mock_chainmanager.go

type MockActionEnvelopeValidator Uses

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

MockActionEnvelopeValidator is a mock of ActionEnvelopeValidator interface

func NewMockActionEnvelopeValidator Uses

func NewMockActionEnvelopeValidator(ctrl *gomock.Controller) *MockActionEnvelopeValidator

NewMockActionEnvelopeValidator creates a new mock instance

func (*MockActionEnvelopeValidator) EXPECT Uses

func (m *MockActionEnvelopeValidator) EXPECT() *MockActionEnvelopeValidatorMockRecorder

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

func (*MockActionEnvelopeValidator) Validate Uses

func (m *MockActionEnvelopeValidator) Validate(arg0 context.Context, arg1 action.SealedEnvelope) error

Validate mocks base method

type MockActionEnvelopeValidatorMockRecorder Uses

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

MockActionEnvelopeValidatorMockRecorder is the mock recorder for MockActionEnvelopeValidator

func (*MockActionEnvelopeValidatorMockRecorder) Validate Uses

func (mr *MockActionEnvelopeValidatorMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate

type MockActionHandler Uses

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

MockActionHandler is a mock of ActionHandler interface

func NewMockActionHandler Uses

func NewMockActionHandler(ctrl *gomock.Controller) *MockActionHandler

NewMockActionHandler creates a new mock instance

func (*MockActionHandler) EXPECT Uses

func (m *MockActionHandler) EXPECT() *MockActionHandlerMockRecorder

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

func (*MockActionHandler) Handle Uses

func (m *MockActionHandler) Handle(arg0 context.Context, arg1 action.Action, arg2 protocol.StateManager) (*action.Receipt, error)

Handle mocks base method

type MockActionHandlerMockRecorder Uses

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

MockActionHandlerMockRecorder is the mock recorder for MockActionHandler

func (*MockActionHandlerMockRecorder) Handle Uses

func (mr *MockActionHandlerMockRecorder) Handle(arg0, arg1, arg2 interface{}) *gomock.Call

Handle indicates an expected call of Handle

type MockActionValidator Uses

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

MockActionValidator is a mock of ActionValidator interface

func NewMockActionValidator Uses

func NewMockActionValidator(ctrl *gomock.Controller) *MockActionValidator

NewMockActionValidator creates a new mock instance

func (*MockActionValidator) EXPECT Uses

func (m *MockActionValidator) EXPECT() *MockActionValidatorMockRecorder

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

func (*MockActionValidator) Validate Uses

func (m *MockActionValidator) Validate(arg0 context.Context, arg1 action.Action) error

Validate mocks base method

type MockActionValidatorMockRecorder Uses

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

MockActionValidatorMockRecorder is the mock recorder for MockActionValidator

func (*MockActionValidatorMockRecorder) Validate Uses

func (mr *MockActionValidatorMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate

type MockChainManager Uses

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

MockChainManager is a mock of ChainManager interface

func NewMockChainManager Uses

func NewMockChainManager(ctrl *gomock.Controller) *MockChainManager

NewMockChainManager creates a new mock instance

func (*MockChainManager) CandidatesByHeight Uses

func (m *MockChainManager) CandidatesByHeight(height uint64) ([]*state.Candidate, error)

CandidatesByHeight mocks base method

func (*MockChainManager) ChainID Uses

func (m *MockChainManager) ChainID() uint32

ChainID mocks base method

func (*MockChainManager) EXPECT Uses

func (m *MockChainManager) EXPECT() *MockChainManagerMockRecorder

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

func (*MockChainManager) GetHashByHeight Uses

func (m *MockChainManager) GetHashByHeight(height uint64) (hash.Hash256, error)

GetHashByHeight mocks base method

func (*MockChainManager) Nonce Uses

func (m *MockChainManager) Nonce(addr string) (uint64, error)

Nonce mocks base method

func (*MockChainManager) ProductivityByEpoch Uses

func (m *MockChainManager) ProductivityByEpoch(epochNum uint64) (uint64, map[string]uint64, error)

ProductivityByEpoch mocks base method

func (*MockChainManager) StateByAddr Uses

func (m *MockChainManager) StateByAddr(address string) (*state.Account, error)

StateByAddr mocks base method

type MockChainManagerMockRecorder Uses

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

MockChainManagerMockRecorder is the mock recorder for MockChainManager

func (*MockChainManagerMockRecorder) CandidatesByHeight Uses

func (mr *MockChainManagerMockRecorder) CandidatesByHeight(height interface{}) *gomock.Call

CandidatesByHeight indicates an expected call of CandidatesByHeight

func (*MockChainManagerMockRecorder) ChainID Uses

func (mr *MockChainManagerMockRecorder) ChainID() *gomock.Call

ChainID indicates an expected call of ChainID

func (*MockChainManagerMockRecorder) GetHashByHeight Uses

func (mr *MockChainManagerMockRecorder) GetHashByHeight(height interface{}) *gomock.Call

GetHashByHeight indicates an expected call of GetHashByHeight

func (*MockChainManagerMockRecorder) Nonce Uses

func (mr *MockChainManagerMockRecorder) Nonce(addr interface{}) *gomock.Call

Nonce indicates an expected call of Nonce

func (*MockChainManagerMockRecorder) ProductivityByEpoch Uses

func (mr *MockChainManagerMockRecorder) ProductivityByEpoch(epochNum interface{}) *gomock.Call

ProductivityByEpoch indicates an expected call of ProductivityByEpoch

func (*MockChainManagerMockRecorder) StateByAddr Uses

func (mr *MockChainManagerMockRecorder) StateByAddr(address interface{}) *gomock.Call

StateByAddr indicates an expected call of StateByAddr

type MockProtocol Uses

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

MockProtocol is a mock of Protocol interface

func NewMockProtocol Uses

func NewMockProtocol(ctrl *gomock.Controller) *MockProtocol

NewMockProtocol creates a new mock instance

func (*MockProtocol) EXPECT Uses

func (m *MockProtocol) EXPECT() *MockProtocolMockRecorder

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

func (*MockProtocol) Handle Uses

func (m *MockProtocol) Handle(arg0 context.Context, arg1 action.Action, arg2 protocol.StateManager) (*action.Receipt, error)

Handle mocks base method

func (*MockProtocol) ReadState Uses

func (m *MockProtocol) ReadState(arg0 context.Context, arg1 protocol.StateManager, arg2 []byte, arg3 ...[]byte) ([]byte, error)

ReadState mocks base method

func (*MockProtocol) Validate Uses

func (m *MockProtocol) Validate(arg0 context.Context, arg1 action.Action) error

Validate mocks base method

type MockProtocolMockRecorder Uses

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

MockProtocolMockRecorder is the mock recorder for MockProtocol

func (*MockProtocolMockRecorder) Handle Uses

func (mr *MockProtocolMockRecorder) Handle(arg0, arg1, arg2 interface{}) *gomock.Call

Handle indicates an expected call of Handle

func (*MockProtocolMockRecorder) ReadState Uses

func (mr *MockProtocolMockRecorder) ReadState(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

ReadState indicates an expected call of ReadState

func (*MockProtocolMockRecorder) Validate Uses

func (mr *MockProtocolMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate

type MockStateManager Uses

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

MockStateManager is a mock of StateManager interface

func NewMockStateManager Uses

func NewMockStateManager(ctrl *gomock.Controller) *MockStateManager

NewMockStateManager creates a new mock instance

func (*MockStateManager) DelState Uses

func (m *MockStateManager) DelState(pkHash hash.Hash160) error

DelState mocks base method

func (*MockStateManager) EXPECT Uses

func (m *MockStateManager) EXPECT() *MockStateManagerMockRecorder

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

func (*MockStateManager) GetCachedBatch Uses

func (m *MockStateManager) GetCachedBatch() db.CachedBatch

GetCachedBatch mocks base method

func (*MockStateManager) GetDB Uses

func (m *MockStateManager) GetDB() db.KVStore

GetDB mocks base method

func (*MockStateManager) Height Uses

func (m *MockStateManager) Height() uint64

Height mocks base method

func (*MockStateManager) PutState Uses

func (m *MockStateManager) PutState(arg0 hash.Hash160, arg1 interface{}) error

PutState mocks base method

func (*MockStateManager) Revert Uses

func (m *MockStateManager) Revert(arg0 int) error

Revert mocks base method

func (*MockStateManager) Snapshot Uses

func (m *MockStateManager) Snapshot() int

Snapshot mocks base method

func (*MockStateManager) State Uses

func (m *MockStateManager) State(arg0 hash.Hash160, arg1 interface{}) error

State mocks base method

type MockStateManagerMockRecorder Uses

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

MockStateManagerMockRecorder is the mock recorder for MockStateManager

func (*MockStateManagerMockRecorder) DelState Uses

func (mr *MockStateManagerMockRecorder) DelState(pkHash interface{}) *gomock.Call

DelState indicates an expected call of DelState

func (*MockStateManagerMockRecorder) GetCachedBatch Uses

func (mr *MockStateManagerMockRecorder) GetCachedBatch() *gomock.Call

GetCachedBatch indicates an expected call of GetCachedBatch

func (*MockStateManagerMockRecorder) GetDB Uses

func (mr *MockStateManagerMockRecorder) GetDB() *gomock.Call

GetDB indicates an expected call of GetDB

func (*MockStateManagerMockRecorder) Height Uses

func (mr *MockStateManagerMockRecorder) Height() *gomock.Call

Height indicates an expected call of Height

func (*MockStateManagerMockRecorder) PutState Uses

func (mr *MockStateManagerMockRecorder) PutState(arg0, arg1 interface{}) *gomock.Call

PutState indicates an expected call of PutState

func (*MockStateManagerMockRecorder) Revert Uses

func (mr *MockStateManagerMockRecorder) Revert(arg0 interface{}) *gomock.Call

Revert indicates an expected call of Revert

func (*MockStateManagerMockRecorder) Snapshot Uses

func (mr *MockStateManagerMockRecorder) Snapshot() *gomock.Call

Snapshot indicates an expected call of Snapshot

func (*MockStateManagerMockRecorder) State Uses

func (mr *MockStateManagerMockRecorder) State(arg0, arg1 interface{}) *gomock.Call

State indicates an expected call of State

Package mock_chainmanager imports 8 packages (graph). Updated 2019-05-17. Refresh now. Tools for package owners.