mock_factory

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock_factory is a generated GoMock package.

Package mock_factory 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) AccountState

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

AccountState mocks base method

func (*MockFactory) AddActionHandlers

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

AddActionHandlers mocks base method

func (*MockFactory) Balance

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

Balance mocks base method

func (*MockFactory) CandidatesByHeight

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

CandidatesByHeight mocks base method

func (*MockFactory) Commit

func (m *MockFactory) Commit(arg0 factory.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

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

Height mocks base method

func (*MockFactory) NewWorkingSet

func (m *MockFactory) NewWorkingSet() (factory.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.Hash256

RootHash mocks base method

func (*MockFactory) RootHashByHeight

func (m *MockFactory) RootHashByHeight(arg0 uint64) (hash.Hash256, error)

RootHashByHeight mocks base method

func (*MockFactory) Start

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

Start mocks base method

func (*MockFactory) State

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

State mocks base method

func (*MockFactory) Stop

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

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

AccountState indicates an expected call of AccountState

func (*MockFactoryMockRecorder) AddActionHandlers

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

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

CandidatesByHeight indicates an expected call of CandidatesByHeight

func (*MockFactoryMockRecorder) Commit

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

Commit indicates an expected call of Commit

func (*MockFactoryMockRecorder) Height

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

Height indicates an expected call of Height

func (*MockFactoryMockRecorder) NewWorkingSet

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

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

RootHashByHeight indicates an expected call of RootHashByHeight

func (*MockFactoryMockRecorder) Start

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

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

Stop indicates an expected call of Stop

type MockWorkingSet

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

MockWorkingSet is a mock of WorkingSet interface

func NewMockWorkingSet

func NewMockWorkingSet(ctrl *gomock.Controller) *MockWorkingSet

NewMockWorkingSet creates a new mock instance

func (*MockWorkingSet) Commit

func (m *MockWorkingSet) Commit() error

Commit mocks base method

func (*MockWorkingSet) DelState

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

DelState mocks base method

func (*MockWorkingSet) Digest

func (m *MockWorkingSet) Digest() hash.Hash256

Digest mocks base method

func (*MockWorkingSet) EXPECT

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

func (*MockWorkingSet) GetCachedBatch

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

GetCachedBatch mocks base method

func (*MockWorkingSet) GetDB

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

GetDB mocks base method

func (*MockWorkingSet) Height

func (m *MockWorkingSet) Height() uint64

Height mocks base method

func (*MockWorkingSet) PutState

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

PutState mocks base method

func (*MockWorkingSet) Revert

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

Revert mocks base method

func (*MockWorkingSet) RootHash

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

RootHash mocks base method

func (*MockWorkingSet) RunAction

RunAction mocks base method

func (*MockWorkingSet) RunActions

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

RunActions mocks base method

func (*MockWorkingSet) Snapshot

func (m *MockWorkingSet) Snapshot() int

Snapshot mocks base method

func (*MockWorkingSet) State

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

State mocks base method

func (*MockWorkingSet) UpdateBlockLevelInfo

func (m *MockWorkingSet) UpdateBlockLevelInfo(blockHeight uint64) hash.Hash256

UpdateBlockLevelInfo mocks base method

func (*MockWorkingSet) Version

func (m *MockWorkingSet) Version() uint64

Version mocks base method

type MockWorkingSetMockRecorder

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

MockWorkingSetMockRecorder is the mock recorder for MockWorkingSet

func (*MockWorkingSetMockRecorder) Commit

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

Commit indicates an expected call of Commit

func (*MockWorkingSetMockRecorder) DelState

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

DelState indicates an expected call of DelState

func (*MockWorkingSetMockRecorder) Digest

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

Digest indicates an expected call of Digest

func (*MockWorkingSetMockRecorder) GetCachedBatch

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

GetCachedBatch indicates an expected call of GetCachedBatch

func (*MockWorkingSetMockRecorder) GetDB

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

GetDB indicates an expected call of GetDB

func (*MockWorkingSetMockRecorder) Height

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

Height indicates an expected call of Height

func (*MockWorkingSetMockRecorder) PutState

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

PutState indicates an expected call of PutState

func (*MockWorkingSetMockRecorder) Revert

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

Revert indicates an expected call of Revert

func (*MockWorkingSetMockRecorder) RootHash

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

RootHash indicates an expected call of RootHash

func (*MockWorkingSetMockRecorder) RunAction

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

RunAction indicates an expected call of RunAction

func (*MockWorkingSetMockRecorder) RunActions

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

RunActions indicates an expected call of RunActions

func (*MockWorkingSetMockRecorder) Snapshot

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

Snapshot indicates an expected call of Snapshot

func (*MockWorkingSetMockRecorder) State

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

State indicates an expected call of State

func (*MockWorkingSetMockRecorder) UpdateBlockLevelInfo

func (mr *MockWorkingSetMockRecorder) UpdateBlockLevelInfo(blockHeight interface{}) *gomock.Call

UpdateBlockLevelInfo indicates an expected call of UpdateBlockLevelInfo

func (*MockWorkingSetMockRecorder) Version

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