Documentation ¶
Overview ¶
Package mock_blockchain is a generated GoMock package.
Index ¶
- type MockIBlockchain
- func (m *MockIBlockchain) AddBlockCommit(blk *blockchain.Block) error
- func (m *MockIBlockchain) AddBlockSync(blk *blockchain.Block) error
- func (m *MockIBlockchain) BalanceOf(arg0 string) uint64
- func (m *MockIBlockchain) Close() error
- func (m *MockIBlockchain) CreateRawTransaction(from iotxaddress.Address, amount uint64, to []*blockchain.Payee) *blockchain.Tx
- func (m *MockIBlockchain) CreateTransaction(from iotxaddress.Address, amount uint64, to []*blockchain.Payee) *blockchain.Tx
- func (m *MockIBlockchain) EXPECT() *MockIBlockchainMockRecorder
- func (m *MockIBlockchain) GetBlockByHash(hash crypto.Hash32B) (*blockchain.Block, error)
- func (m *MockIBlockchain) GetBlockByHeight(height uint32) (*blockchain.Block, error)
- func (m *MockIBlockchain) GetHashByHeight(height uint32) (crypto.Hash32B, error)
- func (m *MockIBlockchain) GetHeightByHash(hash crypto.Hash32B) (uint32, error)
- func (m *MockIBlockchain) Init() error
- func (m *MockIBlockchain) MintNewBlock(arg0 []*blockchain.Tx, arg1, arg2 string) *blockchain.Block
- func (m *MockIBlockchain) Reset()
- func (m *MockIBlockchain) TipHash() crypto.Hash32B
- func (m *MockIBlockchain) TipHeight() uint32
- func (m *MockIBlockchain) UtxoPool() map[crypto.Hash32B][]*blockchain.TxOutput
- func (m *MockIBlockchain) ValidateBlock(blk *blockchain.Block) error
- type MockIBlockchainMockRecorder
- func (mr *MockIBlockchainMockRecorder) AddBlockCommit(blk interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) AddBlockSync(blk interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) BalanceOf(arg0 interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) Close() *gomock.Call
- func (mr *MockIBlockchainMockRecorder) CreateRawTransaction(from, amount, to interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) CreateTransaction(from, amount, to interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) GetBlockByHash(hash interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) GetBlockByHeight(height interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) GetHashByHeight(height interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) GetHeightByHash(hash interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) Init() *gomock.Call
- func (mr *MockIBlockchainMockRecorder) MintNewBlock(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIBlockchainMockRecorder) Reset() *gomock.Call
- func (mr *MockIBlockchainMockRecorder) TipHash() *gomock.Call
- func (mr *MockIBlockchainMockRecorder) TipHeight() *gomock.Call
- func (mr *MockIBlockchainMockRecorder) UtxoPool() *gomock.Call
- func (mr *MockIBlockchainMockRecorder) ValidateBlock(blk interface{}) *gomock.Call
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) 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 ¶
func (m *MockIBlockchain) EXPECT() *MockIBlockchainMockRecorder
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) MintNewBlock ¶
func (m *MockIBlockchain) MintNewBlock(arg0 []*blockchain.Tx, arg1, arg2 string) *blockchain.Block
MintNewBlock 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 ¶
func (mr *MockIBlockchainMockRecorder) Close() *gomock.Call
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 ¶
func (mr *MockIBlockchainMockRecorder) Init() *gomock.Call
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 ¶
func (mr *MockIBlockchainMockRecorder) Reset() *gomock.Call
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