fabproxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChannelClient

type MockChannelClient struct {
	ExecuteStub func(channel.Request, ...channel.RequestOption) (channel.Response, error)

	QueryStub func(channel.Request, ...channel.RequestOption) (channel.Response, error)
	// contains filtered or unexported fields
}

func (*MockChannelClient) Execute

func (fake *MockChannelClient) Execute(arg1 channel.Request, arg2 ...channel.RequestOption) (channel.Response, error)

func (*MockChannelClient) ExecuteArgsForCall

func (fake *MockChannelClient) ExecuteArgsForCall(i int) (channel.Request, []channel.RequestOption)

func (*MockChannelClient) ExecuteCallCount

func (fake *MockChannelClient) ExecuteCallCount() int

func (*MockChannelClient) ExecuteCalls

func (fake *MockChannelClient) ExecuteCalls(stub func(channel.Request, ...channel.RequestOption) (channel.Response, error))

func (*MockChannelClient) ExecuteReturns

func (fake *MockChannelClient) ExecuteReturns(result1 channel.Response, result2 error)

func (*MockChannelClient) ExecuteReturnsOnCall

func (fake *MockChannelClient) ExecuteReturnsOnCall(i int, result1 channel.Response, result2 error)

func (*MockChannelClient) Invocations

func (fake *MockChannelClient) Invocations() map[string][][]interface{}

func (*MockChannelClient) Query

func (*MockChannelClient) QueryArgsForCall

func (fake *MockChannelClient) QueryArgsForCall(i int) (channel.Request, []channel.RequestOption)

func (*MockChannelClient) QueryCallCount

func (fake *MockChannelClient) QueryCallCount() int

func (*MockChannelClient) QueryCalls

func (fake *MockChannelClient) QueryCalls(stub func(channel.Request, ...channel.RequestOption) (channel.Response, error))

func (*MockChannelClient) QueryReturns

func (fake *MockChannelClient) QueryReturns(result1 channel.Response, result2 error)

func (*MockChannelClient) QueryReturnsOnCall

func (fake *MockChannelClient) QueryReturnsOnCall(i int, result1 channel.Response, result2 error)

type MockEthService

type MockEthService struct {
	AccountsStub func(*http.Request, *string, *[]string) error

	CallStub func(*http.Request, *fabproxy.EthArgs, *string) error

	EstimateGasStub func(*http.Request, *fabproxy.EthArgs, *string) error

	GetBalanceStub func(*http.Request, *[]string, *string) error

	GetBlockByNumberStub func(*http.Request, *[]interface{}, *fabproxy.Block) error

	GetCodeStub func(*http.Request, *string, *string) error

	GetTransactionByHashStub func(*http.Request, *string, *fabproxy.Transaction) error

	GetTransactionReceiptStub func(*http.Request, *string, *fabproxy.TxReceipt) error

	SendTransactionStub func(*http.Request, *fabproxy.EthArgs, *string) error
	// contains filtered or unexported fields
}

func (*MockEthService) Accounts

func (fake *MockEthService) Accounts(arg1 *http.Request, arg2 *string, arg3 *[]string) error

func (*MockEthService) AccountsArgsForCall

func (fake *MockEthService) AccountsArgsForCall(i int) (*http.Request, *string, *[]string)

func (*MockEthService) AccountsCallCount

func (fake *MockEthService) AccountsCallCount() int

func (*MockEthService) AccountsCalls

func (fake *MockEthService) AccountsCalls(stub func(*http.Request, *string, *[]string) error)

func (*MockEthService) AccountsReturns

func (fake *MockEthService) AccountsReturns(result1 error)

func (*MockEthService) AccountsReturnsOnCall

func (fake *MockEthService) AccountsReturnsOnCall(i int, result1 error)

func (*MockEthService) Call

func (fake *MockEthService) Call(arg1 *http.Request, arg2 *fabproxy.EthArgs, arg3 *string) error

func (*MockEthService) CallArgsForCall

func (fake *MockEthService) CallArgsForCall(i int) (*http.Request, *fabproxy.EthArgs, *string)

func (*MockEthService) CallCallCount

func (fake *MockEthService) CallCallCount() int

func (*MockEthService) CallCalls

func (fake *MockEthService) CallCalls(stub func(*http.Request, *fabproxy.EthArgs, *string) error)

func (*MockEthService) CallReturns

func (fake *MockEthService) CallReturns(result1 error)

func (*MockEthService) CallReturnsOnCall

func (fake *MockEthService) CallReturnsOnCall(i int, result1 error)

func (*MockEthService) EstimateGas

func (fake *MockEthService) EstimateGas(arg1 *http.Request, arg2 *fabproxy.EthArgs, arg3 *string) error

func (*MockEthService) EstimateGasArgsForCall

func (fake *MockEthService) EstimateGasArgsForCall(i int) (*http.Request, *fabproxy.EthArgs, *string)

func (*MockEthService) EstimateGasCallCount

func (fake *MockEthService) EstimateGasCallCount() int

func (*MockEthService) EstimateGasCalls

func (fake *MockEthService) EstimateGasCalls(stub func(*http.Request, *fabproxy.EthArgs, *string) error)

func (*MockEthService) EstimateGasReturns

func (fake *MockEthService) EstimateGasReturns(result1 error)

func (*MockEthService) EstimateGasReturnsOnCall

func (fake *MockEthService) EstimateGasReturnsOnCall(i int, result1 error)

func (*MockEthService) GetBalance

func (fake *MockEthService) GetBalance(arg1 *http.Request, arg2 *[]string, arg3 *string) error

func (*MockEthService) GetBalanceArgsForCall

func (fake *MockEthService) GetBalanceArgsForCall(i int) (*http.Request, *[]string, *string)

func (*MockEthService) GetBalanceCallCount

func (fake *MockEthService) GetBalanceCallCount() int

func (*MockEthService) GetBalanceCalls

func (fake *MockEthService) GetBalanceCalls(stub func(*http.Request, *[]string, *string) error)

func (*MockEthService) GetBalanceReturns

func (fake *MockEthService) GetBalanceReturns(result1 error)

func (*MockEthService) GetBalanceReturnsOnCall

func (fake *MockEthService) GetBalanceReturnsOnCall(i int, result1 error)

func (*MockEthService) GetBlockByNumber

func (fake *MockEthService) GetBlockByNumber(arg1 *http.Request, arg2 *[]interface{}, arg3 *fabproxy.Block) error

func (*MockEthService) GetBlockByNumberArgsForCall

func (fake *MockEthService) GetBlockByNumberArgsForCall(i int) (*http.Request, *[]interface{}, *fabproxy.Block)

func (*MockEthService) GetBlockByNumberCallCount

func (fake *MockEthService) GetBlockByNumberCallCount() int

func (*MockEthService) GetBlockByNumberCalls

func (fake *MockEthService) GetBlockByNumberCalls(stub func(*http.Request, *[]interface{}, *fabproxy.Block) error)

func (*MockEthService) GetBlockByNumberReturns

func (fake *MockEthService) GetBlockByNumberReturns(result1 error)

func (*MockEthService) GetBlockByNumberReturnsOnCall

func (fake *MockEthService) GetBlockByNumberReturnsOnCall(i int, result1 error)

func (*MockEthService) GetCode

func (fake *MockEthService) GetCode(arg1 *http.Request, arg2 *string, arg3 *string) error

func (*MockEthService) GetCodeArgsForCall

func (fake *MockEthService) GetCodeArgsForCall(i int) (*http.Request, *string, *string)

func (*MockEthService) GetCodeCallCount

func (fake *MockEthService) GetCodeCallCount() int

func (*MockEthService) GetCodeCalls

func (fake *MockEthService) GetCodeCalls(stub func(*http.Request, *string, *string) error)

func (*MockEthService) GetCodeReturns

func (fake *MockEthService) GetCodeReturns(result1 error)

func (*MockEthService) GetCodeReturnsOnCall

func (fake *MockEthService) GetCodeReturnsOnCall(i int, result1 error)

func (*MockEthService) GetTransactionByHash

func (fake *MockEthService) GetTransactionByHash(arg1 *http.Request, arg2 *string, arg3 *fabproxy.Transaction) error

func (*MockEthService) GetTransactionByHashArgsForCall

func (fake *MockEthService) GetTransactionByHashArgsForCall(i int) (*http.Request, *string, *fabproxy.Transaction)

func (*MockEthService) GetTransactionByHashCallCount

func (fake *MockEthService) GetTransactionByHashCallCount() int

func (*MockEthService) GetTransactionByHashCalls

func (fake *MockEthService) GetTransactionByHashCalls(stub func(*http.Request, *string, *fabproxy.Transaction) error)

func (*MockEthService) GetTransactionByHashReturns

func (fake *MockEthService) GetTransactionByHashReturns(result1 error)

func (*MockEthService) GetTransactionByHashReturnsOnCall

func (fake *MockEthService) GetTransactionByHashReturnsOnCall(i int, result1 error)

func (*MockEthService) GetTransactionReceipt

func (fake *MockEthService) GetTransactionReceipt(arg1 *http.Request, arg2 *string, arg3 *fabproxy.TxReceipt) error

func (*MockEthService) GetTransactionReceiptArgsForCall

func (fake *MockEthService) GetTransactionReceiptArgsForCall(i int) (*http.Request, *string, *fabproxy.TxReceipt)

func (*MockEthService) GetTransactionReceiptCallCount

func (fake *MockEthService) GetTransactionReceiptCallCount() int

func (*MockEthService) GetTransactionReceiptCalls

func (fake *MockEthService) GetTransactionReceiptCalls(stub func(*http.Request, *string, *fabproxy.TxReceipt) error)

func (*MockEthService) GetTransactionReceiptReturns

func (fake *MockEthService) GetTransactionReceiptReturns(result1 error)

func (*MockEthService) GetTransactionReceiptReturnsOnCall

func (fake *MockEthService) GetTransactionReceiptReturnsOnCall(i int, result1 error)

func (*MockEthService) Invocations

func (fake *MockEthService) Invocations() map[string][][]interface{}

func (*MockEthService) SendTransaction

func (fake *MockEthService) SendTransaction(arg1 *http.Request, arg2 *fabproxy.EthArgs, arg3 *string) error

func (*MockEthService) SendTransactionArgsForCall

func (fake *MockEthService) SendTransactionArgsForCall(i int) (*http.Request, *fabproxy.EthArgs, *string)

func (*MockEthService) SendTransactionCallCount

func (fake *MockEthService) SendTransactionCallCount() int

func (*MockEthService) SendTransactionCalls

func (fake *MockEthService) SendTransactionCalls(stub func(*http.Request, *fabproxy.EthArgs, *string) error)

func (*MockEthService) SendTransactionReturns

func (fake *MockEthService) SendTransactionReturns(result1 error)

func (*MockEthService) SendTransactionReturnsOnCall

func (fake *MockEthService) SendTransactionReturnsOnCall(i int, result1 error)

type MockLedgerClient

type MockLedgerClient struct {
	QueryBlockStub func(uint64, ...ledger.RequestOption) (*common.Block, error)

	QueryBlockByTxIDStub func(fab.TransactionID, ...ledger.RequestOption) (*common.Block, error)

	QueryInfoStub func(...ledger.RequestOption) (*fab.BlockchainInfoResponse, error)

	QueryTransactionStub func(fab.TransactionID, ...ledger.RequestOption) (*peer.ProcessedTransaction, error)
	// contains filtered or unexported fields
}

func (*MockLedgerClient) Invocations

func (fake *MockLedgerClient) Invocations() map[string][][]interface{}

func (*MockLedgerClient) QueryBlock

func (fake *MockLedgerClient) QueryBlock(arg1 uint64, arg2 ...ledger.RequestOption) (*common.Block, error)

func (*MockLedgerClient) QueryBlockArgsForCall

func (fake *MockLedgerClient) QueryBlockArgsForCall(i int) (uint64, []ledger.RequestOption)

func (*MockLedgerClient) QueryBlockByTxID

func (fake *MockLedgerClient) QueryBlockByTxID(arg1 fab.TransactionID, arg2 ...ledger.RequestOption) (*common.Block, error)

func (*MockLedgerClient) QueryBlockByTxIDArgsForCall

func (fake *MockLedgerClient) QueryBlockByTxIDArgsForCall(i int) (fab.TransactionID, []ledger.RequestOption)

func (*MockLedgerClient) QueryBlockByTxIDCallCount

func (fake *MockLedgerClient) QueryBlockByTxIDCallCount() int

func (*MockLedgerClient) QueryBlockByTxIDCalls

func (fake *MockLedgerClient) QueryBlockByTxIDCalls(stub func(fab.TransactionID, ...ledger.RequestOption) (*common.Block, error))

func (*MockLedgerClient) QueryBlockByTxIDReturns

func (fake *MockLedgerClient) QueryBlockByTxIDReturns(result1 *common.Block, result2 error)

func (*MockLedgerClient) QueryBlockByTxIDReturnsOnCall

func (fake *MockLedgerClient) QueryBlockByTxIDReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*MockLedgerClient) QueryBlockCallCount

func (fake *MockLedgerClient) QueryBlockCallCount() int

func (*MockLedgerClient) QueryBlockCalls

func (fake *MockLedgerClient) QueryBlockCalls(stub func(uint64, ...ledger.RequestOption) (*common.Block, error))

func (*MockLedgerClient) QueryBlockReturns

func (fake *MockLedgerClient) QueryBlockReturns(result1 *common.Block, result2 error)

func (*MockLedgerClient) QueryBlockReturnsOnCall

func (fake *MockLedgerClient) QueryBlockReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*MockLedgerClient) QueryInfo

func (*MockLedgerClient) QueryInfoArgsForCall

func (fake *MockLedgerClient) QueryInfoArgsForCall(i int) []ledger.RequestOption

func (*MockLedgerClient) QueryInfoCallCount

func (fake *MockLedgerClient) QueryInfoCallCount() int

func (*MockLedgerClient) QueryInfoCalls

func (fake *MockLedgerClient) QueryInfoCalls(stub func(...ledger.RequestOption) (*fab.BlockchainInfoResponse, error))

func (*MockLedgerClient) QueryInfoReturns

func (fake *MockLedgerClient) QueryInfoReturns(result1 *fab.BlockchainInfoResponse, result2 error)

func (*MockLedgerClient) QueryInfoReturnsOnCall

func (fake *MockLedgerClient) QueryInfoReturnsOnCall(i int, result1 *fab.BlockchainInfoResponse, result2 error)

func (*MockLedgerClient) QueryTransaction

func (fake *MockLedgerClient) QueryTransaction(arg1 fab.TransactionID, arg2 ...ledger.RequestOption) (*peer.ProcessedTransaction, error)

func (*MockLedgerClient) QueryTransactionArgsForCall

func (fake *MockLedgerClient) QueryTransactionArgsForCall(i int) (fab.TransactionID, []ledger.RequestOption)

func (*MockLedgerClient) QueryTransactionCallCount

func (fake *MockLedgerClient) QueryTransactionCallCount() int

func (*MockLedgerClient) QueryTransactionCalls

func (fake *MockLedgerClient) QueryTransactionCalls(stub func(fab.TransactionID, ...ledger.RequestOption) (*peer.ProcessedTransaction, error))

func (*MockLedgerClient) QueryTransactionReturns

func (fake *MockLedgerClient) QueryTransactionReturns(result1 *peer.ProcessedTransaction, result2 error)

func (*MockLedgerClient) QueryTransactionReturnsOnCall

func (fake *MockLedgerClient) QueryTransactionReturnsOnCall(i int, result1 *peer.ProcessedTransaction, result2 error)

Jump to

Keyboard shortcuts

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