mock_chainmanager

package
v0.5.0-rc4-hotfix2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_chainmanager is a generated GoMock package.

Index

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

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

func (*MockActionEnvelopeValidator) Validate

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

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

func (*MockActionHandler) Handle

Handle mocks base method

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

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

func (*MockActionValidator) Validate

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

Validate mocks base method

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

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

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

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) 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

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) 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) 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

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

func (*MockProtocol) Handle

Handle mocks base method

func (*MockProtocol) ReadState

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

ReadState mocks base method

func (*MockProtocol) Validate

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

Validate 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

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

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

func (*MockStateManager) State

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

State 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

GetDB indicates an expected call of GetDB

func (*MockStateManagerMockRecorder) Height

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL