mock_state

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_state is a generated GoMock package.

Package mock_state is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockActionHandler added in v0.4.0

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

MockActionHandler is a mock of ActionHandler interface

func NewMockActionHandler added in v0.4.0

func NewMockActionHandler(ctrl *gomock.Controller) *MockActionHandler

NewMockActionHandler creates a new mock instance

func (*MockActionHandler) EXPECT added in v0.4.0

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

func (*MockActionHandler) Handle added in v0.4.0

Handle mocks base method

type MockActionHandlerMockRecorder added in v0.4.0

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

MockActionHandlerMockRecorder is the mock recorder for MockActionHandler

func (*MockActionHandlerMockRecorder) Handle added in v0.4.0

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

Handle indicates an expected call of Handle

type MockFactory

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

MockFactory is a mock of Factory interface

func NewMockFactory

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance

func (*MockFactory) AccountState added in v0.4.0

func (m *MockFactory) AccountState(arg0 string) (*state.Account, error)

AccountState mocks base method

func (*MockFactory) AddActionHandlers added in v0.4.0

func (m *MockFactory) AddActionHandlers(arg0 ...state.ActionHandler)

AddActionHandlers mocks base method

func (*MockFactory) Balance

func (m *MockFactory) Balance(arg0 string) (*big.Int, error)

Balance mocks base method

func (*MockFactory) CandidatesByHeight added in v0.3.0

func (m *MockFactory) CandidatesByHeight(arg0 uint64) ([]*state.Candidate, error)

CandidatesByHeight mocks base method

func (*MockFactory) Commit added in v0.4.0

func (m *MockFactory) Commit(arg0 state.WorkingSet) error

Commit mocks base method

func (*MockFactory) EXPECT

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

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

func (*MockFactory) Height added in v0.3.0

func (m *MockFactory) Height() (uint64, error)

Height mocks base method

func (*MockFactory) NewWorkingSet added in v0.4.0

func (m *MockFactory) NewWorkingSet() (state.WorkingSet, error)

NewWorkingSet mocks base method

func (*MockFactory) Nonce

func (m *MockFactory) Nonce(arg0 string) (uint64, error)

Nonce mocks base method

func (*MockFactory) RootHash

func (m *MockFactory) RootHash() hash.Hash32B

RootHash mocks base method

func (*MockFactory) Start added in v0.3.0

func (m *MockFactory) Start(arg0 context.Context) error

Start mocks base method

func (*MockFactory) State

func (m *MockFactory) State(arg0 hash.PKHash, arg1 state.State) (state.State, error)

State mocks base method

func (*MockFactory) Stop added in v0.3.0

func (m *MockFactory) Stop(arg0 context.Context) error

Stop mocks base method

type MockFactoryMockRecorder

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

MockFactoryMockRecorder is the mock recorder for MockFactory

func (*MockFactoryMockRecorder) AccountState added in v0.4.0

func (mr *MockFactoryMockRecorder) AccountState(arg0 interface{}) *gomock.Call

AccountState indicates an expected call of AccountState

func (*MockFactoryMockRecorder) AddActionHandlers added in v0.4.0

func (mr *MockFactoryMockRecorder) AddActionHandlers(arg0 ...interface{}) *gomock.Call

AddActionHandlers indicates an expected call of AddActionHandlers

func (*MockFactoryMockRecorder) Balance

func (mr *MockFactoryMockRecorder) Balance(arg0 interface{}) *gomock.Call

Balance indicates an expected call of Balance

func (*MockFactoryMockRecorder) CandidatesByHeight added in v0.3.0

func (mr *MockFactoryMockRecorder) CandidatesByHeight(arg0 interface{}) *gomock.Call

CandidatesByHeight indicates an expected call of CandidatesByHeight

func (*MockFactoryMockRecorder) Commit added in v0.4.0

func (mr *MockFactoryMockRecorder) Commit(arg0 interface{}) *gomock.Call

Commit indicates an expected call of Commit

func (*MockFactoryMockRecorder) Height added in v0.3.0

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

Height indicates an expected call of Height

func (*MockFactoryMockRecorder) NewWorkingSet added in v0.4.0

func (mr *MockFactoryMockRecorder) NewWorkingSet() *gomock.Call

NewWorkingSet indicates an expected call of NewWorkingSet

func (*MockFactoryMockRecorder) Nonce

func (mr *MockFactoryMockRecorder) Nonce(arg0 interface{}) *gomock.Call

Nonce indicates an expected call of Nonce

func (*MockFactoryMockRecorder) RootHash

func (mr *MockFactoryMockRecorder) RootHash() *gomock.Call

RootHash indicates an expected call of RootHash

func (*MockFactoryMockRecorder) Start added in v0.3.0

func (mr *MockFactoryMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start

func (*MockFactoryMockRecorder) State

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

State indicates an expected call of State

func (*MockFactoryMockRecorder) Stop added in v0.3.0

func (mr *MockFactoryMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop

type MockWorkingSet added in v0.4.0

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

MockWorkingSet is a mock of WorkingSet interface

func NewMockWorkingSet added in v0.4.0

func NewMockWorkingSet(ctrl *gomock.Controller) *MockWorkingSet

NewMockWorkingSet creates a new mock instance

func (*MockWorkingSet) CachedAccountState added in v0.4.0

func (m *MockWorkingSet) CachedAccountState(arg0 string) (*state.Account, error)

CachedAccountState mocks base method

func (*MockWorkingSet) CachedState added in v0.4.0

func (m *MockWorkingSet) CachedState(arg0 hash.PKHash, arg1 state.State) (state.State, error)

CachedState mocks base method

func (*MockWorkingSet) Commit added in v0.4.0

func (m *MockWorkingSet) Commit() error

Commit mocks base method

func (*MockWorkingSet) EXPECT added in v0.4.0

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

func (*MockWorkingSet) GetCode added in v0.4.0

func (m *MockWorkingSet) GetCode(arg0 hash.PKHash) ([]byte, error)

GetCode mocks base method

func (*MockWorkingSet) GetCodeHash added in v0.4.0

func (m *MockWorkingSet) GetCodeHash(arg0 hash.PKHash) (hash.Hash32B, error)

GetCodeHash mocks base method

func (*MockWorkingSet) GetContractState added in v0.4.0

func (m *MockWorkingSet) GetContractState(arg0 hash.PKHash, arg1 hash.Hash32B) (hash.Hash32B, error)

GetContractState mocks base method

func (*MockWorkingSet) Height added in v0.4.0

func (m *MockWorkingSet) Height() uint64

Height mocks base method

func (*MockWorkingSet) LoadOrCreateAccountState added in v0.4.0

func (m *MockWorkingSet) LoadOrCreateAccountState(arg0 string, arg1 *big.Int) (*state.Account, error)

LoadOrCreateAccountState mocks base method

func (*MockWorkingSet) Nonce added in v0.4.0

func (m *MockWorkingSet) Nonce(arg0 string) (uint64, error)

Nonce mocks base method

func (*MockWorkingSet) PutState added in v0.4.0

func (m *MockWorkingSet) PutState(arg0 hash.PKHash, arg1 state.State) error

PutState mocks base method

func (*MockWorkingSet) RootHash added in v0.4.0

func (m *MockWorkingSet) RootHash() hash.Hash32B

RootHash mocks base method

func (*MockWorkingSet) RunActions added in v0.4.0

func (m *MockWorkingSet) RunActions(arg0 context.Context, arg1 uint64, arg2 []action.Action) (hash.Hash32B, map[hash.Hash32B]*action.Receipt, error)

RunActions mocks base method

func (*MockWorkingSet) SetCode added in v0.4.0

func (m *MockWorkingSet) SetCode(arg0 hash.PKHash, arg1 []byte) error

SetCode mocks base method

func (*MockWorkingSet) SetContractState added in v0.4.0

func (m *MockWorkingSet) SetContractState(arg0 hash.PKHash, arg1, arg2 hash.Hash32B) error

SetContractState mocks base method

func (*MockWorkingSet) State added in v0.4.0

func (m *MockWorkingSet) State(arg0 hash.PKHash, arg1 state.State) (state.State, error)

State mocks base method

func (*MockWorkingSet) UpdateCachedStates added in v0.4.0

func (m *MockWorkingSet) UpdateCachedStates(arg0 hash.PKHash, arg1 *state.Account)

UpdateCachedStates mocks base method

func (*MockWorkingSet) Version added in v0.4.0

func (m *MockWorkingSet) Version() uint64

Version mocks base method

type MockWorkingSetMockRecorder added in v0.4.0

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

MockWorkingSetMockRecorder is the mock recorder for MockWorkingSet

func (*MockWorkingSetMockRecorder) CachedAccountState added in v0.4.0

func (mr *MockWorkingSetMockRecorder) CachedAccountState(arg0 interface{}) *gomock.Call

CachedAccountState indicates an expected call of CachedAccountState

func (*MockWorkingSetMockRecorder) CachedState added in v0.4.0

func (mr *MockWorkingSetMockRecorder) CachedState(arg0, arg1 interface{}) *gomock.Call

CachedState indicates an expected call of CachedState

func (*MockWorkingSetMockRecorder) Commit added in v0.4.0

func (mr *MockWorkingSetMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit

func (*MockWorkingSetMockRecorder) GetCode added in v0.4.0

func (mr *MockWorkingSetMockRecorder) GetCode(arg0 interface{}) *gomock.Call

GetCode indicates an expected call of GetCode

func (*MockWorkingSetMockRecorder) GetCodeHash added in v0.4.0

func (mr *MockWorkingSetMockRecorder) GetCodeHash(arg0 interface{}) *gomock.Call

GetCodeHash indicates an expected call of GetCodeHash

func (*MockWorkingSetMockRecorder) GetContractState added in v0.4.0

func (mr *MockWorkingSetMockRecorder) GetContractState(arg0, arg1 interface{}) *gomock.Call

GetContractState indicates an expected call of GetContractState

func (*MockWorkingSetMockRecorder) Height added in v0.4.0

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

Height indicates an expected call of Height

func (*MockWorkingSetMockRecorder) LoadOrCreateAccountState added in v0.4.0

func (mr *MockWorkingSetMockRecorder) LoadOrCreateAccountState(arg0, arg1 interface{}) *gomock.Call

LoadOrCreateAccountState indicates an expected call of LoadOrCreateAccountState

func (*MockWorkingSetMockRecorder) Nonce added in v0.4.0

func (mr *MockWorkingSetMockRecorder) Nonce(arg0 interface{}) *gomock.Call

Nonce indicates an expected call of Nonce

func (*MockWorkingSetMockRecorder) PutState added in v0.4.0

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

PutState indicates an expected call of PutState

func (*MockWorkingSetMockRecorder) RootHash added in v0.4.0

func (mr *MockWorkingSetMockRecorder) RootHash() *gomock.Call

RootHash indicates an expected call of RootHash

func (*MockWorkingSetMockRecorder) RunActions added in v0.4.0

func (mr *MockWorkingSetMockRecorder) RunActions(arg0, arg1, arg2 interface{}) *gomock.Call

RunActions indicates an expected call of RunActions

func (*MockWorkingSetMockRecorder) SetCode added in v0.4.0

func (mr *MockWorkingSetMockRecorder) SetCode(arg0, arg1 interface{}) *gomock.Call

SetCode indicates an expected call of SetCode

func (*MockWorkingSetMockRecorder) SetContractState added in v0.4.0

func (mr *MockWorkingSetMockRecorder) SetContractState(arg0, arg1, arg2 interface{}) *gomock.Call

SetContractState indicates an expected call of SetContractState

func (*MockWorkingSetMockRecorder) State added in v0.4.0

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

State indicates an expected call of State

func (*MockWorkingSetMockRecorder) UpdateCachedStates added in v0.4.0

func (mr *MockWorkingSetMockRecorder) UpdateCachedStates(arg0, arg1 interface{}) *gomock.Call

UpdateCachedStates indicates an expected call of UpdateCachedStates

func (*MockWorkingSetMockRecorder) Version added in v0.4.0

func (mr *MockWorkingSetMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version

Jump to

Keyboard shortcuts

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