mock_state

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Overview

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

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

Balance mocks base method

func (*MockFactory) CachedState added in v0.3.0

func (m *MockFactory) CachedState(arg0 string) (*state.State, error)

CachedState mocks base method

func (*MockFactory) Candidates

func (m *MockFactory) Candidates() (uint64, []*state.Candidate)

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

func (m *MockFactory) CommitStateChanges(arg0 uint64, arg1 []*action.Transfer, arg2 []*action.Vote, arg3 []*action.Execution) error

CommitStateChanges 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) GetCode added in v0.3.0

func (m *MockFactory) GetCode(arg0 hash.AddrHash) ([]byte, error)

GetCode mocks base method

func (*MockFactory) GetCodeHash added in v0.3.0

func (m *MockFactory) GetCodeHash(arg0 hash.AddrHash) (hash.Hash32B, error)

GetCodeHash mocks base method

func (*MockFactory) GetContractState added in v0.3.0

func (m *MockFactory) GetContractState(arg0 hash.AddrHash, arg1 hash.Hash32B) (hash.Hash32B, error)

GetContractState mocks base method

func (*MockFactory) Height added in v0.3.0

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

Height mocks base method

func (*MockFactory) LoadOrCreateState added in v0.3.0

func (m *MockFactory) LoadOrCreateState(arg0 string, arg1 uint64) (*state.State, error)

LoadOrCreateState 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) SetCode added in v0.3.0

func (m *MockFactory) SetCode(arg0 hash.AddrHash, arg1 []byte) error

SetCode mocks base method

func (*MockFactory) SetContractState added in v0.3.0

func (m *MockFactory) SetContractState(arg0 hash.AddrHash, arg1, arg2 hash.Hash32B) error

SetContractState 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 string) (*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) Balance

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

Balance indicates an expected call of Balance

func (*MockFactoryMockRecorder) CachedState added in v0.3.0

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

CachedState indicates an expected call of CachedState

func (*MockFactoryMockRecorder) Candidates

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

Candidates indicates an expected call of Candidates

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

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

CommitStateChanges indicates an expected call of CommitStateChanges

func (*MockFactoryMockRecorder) GetCode added in v0.3.0

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

GetCode indicates an expected call of GetCode

func (*MockFactoryMockRecorder) GetCodeHash added in v0.3.0

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

GetCodeHash indicates an expected call of GetCodeHash

func (*MockFactoryMockRecorder) GetContractState added in v0.3.0

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

GetContractState indicates an expected call of GetContractState

func (*MockFactoryMockRecorder) Height added in v0.3.0

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

Height indicates an expected call of Height

func (*MockFactoryMockRecorder) LoadOrCreateState added in v0.3.0

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

LoadOrCreateState indicates an expected call of LoadOrCreateState

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) SetCode added in v0.3.0

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

SetCode indicates an expected call of SetCode

func (*MockFactoryMockRecorder) SetContractState added in v0.3.0

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

SetContractState indicates an expected call of SetContractState

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

Jump to

Keyboard shortcuts

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