mock_blockchain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_blockchain is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIBlockchain

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

MockIBlockchain is a mock of IBlockchain interface

func NewMockIBlockchain

func NewMockIBlockchain(ctrl *gomock.Controller) *MockIBlockchain

NewMockIBlockchain creates a new mock instance

func (*MockIBlockchain) AddBlockCommit

func (m *MockIBlockchain) AddBlockCommit(blk *blockchain.Block) error

AddBlockCommit mocks base method

func (*MockIBlockchain) AddBlockSync

func (m *MockIBlockchain) AddBlockSync(blk *blockchain.Block) error

AddBlockSync mocks base method

func (*MockIBlockchain) BalanceOf

func (m *MockIBlockchain) BalanceOf(arg0 string) uint64

BalanceOf mocks base method

func (*MockIBlockchain) Close

func (m *MockIBlockchain) Close() error

Close mocks base method

func (*MockIBlockchain) CreateRawTransaction

func (m *MockIBlockchain) CreateRawTransaction(from iotxaddress.Address, amount uint64, to []*blockchain.Payee) *blockchain.Tx

CreateRawTransaction mocks base method

func (*MockIBlockchain) CreateTransaction

func (m *MockIBlockchain) CreateTransaction(from iotxaddress.Address, amount uint64, to []*blockchain.Payee) *blockchain.Tx

CreateTransaction mocks base method

func (*MockIBlockchain) EXPECT

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

func (*MockIBlockchain) GetBlockByHash

func (m *MockIBlockchain) GetBlockByHash(hash crypto.Hash32B) (*blockchain.Block, error)

GetBlockByHash mocks base method

func (*MockIBlockchain) GetBlockByHeight

func (m *MockIBlockchain) GetBlockByHeight(height uint32) (*blockchain.Block, error)

GetBlockByHeight mocks base method

func (*MockIBlockchain) GetHashByHeight

func (m *MockIBlockchain) GetHashByHeight(height uint32) (crypto.Hash32B, error)

GetHashByHeight mocks base method

func (*MockIBlockchain) GetHeightByHash

func (m *MockIBlockchain) GetHeightByHash(hash crypto.Hash32B) (uint32, error)

GetHeightByHash mocks base method

func (*MockIBlockchain) Init

func (m *MockIBlockchain) Init() error

Init mocks base method

func (*MockIBlockchain) MintNewBlock

func (m *MockIBlockchain) MintNewBlock(arg0 []*blockchain.Tx, arg1, arg2 string) *blockchain.Block

MintNewBlock mocks base method

func (*MockIBlockchain) Reset

func (m *MockIBlockchain) Reset()

Reset mocks base method

func (*MockIBlockchain) TipHash

func (m *MockIBlockchain) TipHash() crypto.Hash32B

TipHash mocks base method

func (*MockIBlockchain) TipHeight

func (m *MockIBlockchain) TipHeight() uint32

TipHeight mocks base method

func (*MockIBlockchain) UtxoPool

func (m *MockIBlockchain) UtxoPool() map[crypto.Hash32B][]*blockchain.TxOutput

UtxoPool mocks base method

func (*MockIBlockchain) ValidateBlock

func (m *MockIBlockchain) ValidateBlock(blk *blockchain.Block) error

ValidateBlock mocks base method

type MockIBlockchainMockRecorder

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

MockIBlockchainMockRecorder is the mock recorder for MockIBlockchain

func (*MockIBlockchainMockRecorder) AddBlockCommit

func (mr *MockIBlockchainMockRecorder) AddBlockCommit(blk interface{}) *gomock.Call

AddBlockCommit indicates an expected call of AddBlockCommit

func (*MockIBlockchainMockRecorder) AddBlockSync

func (mr *MockIBlockchainMockRecorder) AddBlockSync(blk interface{}) *gomock.Call

AddBlockSync indicates an expected call of AddBlockSync

func (*MockIBlockchainMockRecorder) BalanceOf

func (mr *MockIBlockchainMockRecorder) BalanceOf(arg0 interface{}) *gomock.Call

BalanceOf indicates an expected call of BalanceOf

func (*MockIBlockchainMockRecorder) Close

Close indicates an expected call of Close

func (*MockIBlockchainMockRecorder) CreateRawTransaction

func (mr *MockIBlockchainMockRecorder) CreateRawTransaction(from, amount, to interface{}) *gomock.Call

CreateRawTransaction indicates an expected call of CreateRawTransaction

func (*MockIBlockchainMockRecorder) CreateTransaction

func (mr *MockIBlockchainMockRecorder) CreateTransaction(from, amount, to interface{}) *gomock.Call

CreateTransaction indicates an expected call of CreateTransaction

func (*MockIBlockchainMockRecorder) GetBlockByHash

func (mr *MockIBlockchainMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call

GetBlockByHash indicates an expected call of GetBlockByHash

func (*MockIBlockchainMockRecorder) GetBlockByHeight

func (mr *MockIBlockchainMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call

GetBlockByHeight indicates an expected call of GetBlockByHeight

func (*MockIBlockchainMockRecorder) GetHashByHeight

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

GetHashByHeight indicates an expected call of GetHashByHeight

func (*MockIBlockchainMockRecorder) GetHeightByHash

func (mr *MockIBlockchainMockRecorder) GetHeightByHash(hash interface{}) *gomock.Call

GetHeightByHash indicates an expected call of GetHeightByHash

func (*MockIBlockchainMockRecorder) Init

Init indicates an expected call of Init

func (*MockIBlockchainMockRecorder) MintNewBlock

func (mr *MockIBlockchainMockRecorder) MintNewBlock(arg0, arg1, arg2 interface{}) *gomock.Call

MintNewBlock indicates an expected call of MintNewBlock

func (*MockIBlockchainMockRecorder) Reset

Reset indicates an expected call of Reset

func (*MockIBlockchainMockRecorder) TipHash

func (mr *MockIBlockchainMockRecorder) TipHash() *gomock.Call

TipHash indicates an expected call of TipHash

func (*MockIBlockchainMockRecorder) TipHeight

func (mr *MockIBlockchainMockRecorder) TipHeight() *gomock.Call

TipHeight indicates an expected call of TipHeight

func (*MockIBlockchainMockRecorder) UtxoPool

func (mr *MockIBlockchainMockRecorder) UtxoPool() *gomock.Call

UtxoPool indicates an expected call of UtxoPool

func (*MockIBlockchainMockRecorder) ValidateBlock

func (mr *MockIBlockchainMockRecorder) ValidateBlock(blk interface{}) *gomock.Call

ValidateBlock indicates an expected call of ValidateBlock

Jump to

Keyboard shortcuts

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