mocks

package
v0.0.0-...-9b7ba46 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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 Ledger

type Ledger struct {
	CommitNotificationsChannelStub func(<-chan struct{}) (<-chan *ledgera.CommitNotification, error)

	GetBlockByTxIDStub func(string) (*common.Block, error)

	GetBlockchainInfoStub func() (*common.BlockchainInfo, error)

	GetBlocksIteratorStub func(uint64) (ledgerb.ResultsIterator, error)

	GetTxValidationCodeByTxIDStub func(string) (peer.TxValidationCode, uint64, error)
	// contains filtered or unexported fields
}

func (*Ledger) CommitNotificationsChannel

func (fake *Ledger) CommitNotificationsChannel(arg1 <-chan struct{}) (<-chan *ledgera.CommitNotification, error)

func (*Ledger) CommitNotificationsChannelArgsForCall

func (fake *Ledger) CommitNotificationsChannelArgsForCall(i int) <-chan struct{}

func (*Ledger) CommitNotificationsChannelCallCount

func (fake *Ledger) CommitNotificationsChannelCallCount() int

func (*Ledger) CommitNotificationsChannelCalls

func (fake *Ledger) CommitNotificationsChannelCalls(stub func(<-chan struct{}) (<-chan *ledgera.CommitNotification, error))

func (*Ledger) CommitNotificationsChannelReturns

func (fake *Ledger) CommitNotificationsChannelReturns(result1 <-chan *ledgera.CommitNotification, result2 error)

func (*Ledger) CommitNotificationsChannelReturnsOnCall

func (fake *Ledger) CommitNotificationsChannelReturnsOnCall(i int, result1 <-chan *ledgera.CommitNotification, result2 error)

func (*Ledger) GetBlockByTxID

func (fake *Ledger) GetBlockByTxID(arg1 string) (*common.Block, error)

func (*Ledger) GetBlockByTxIDArgsForCall

func (fake *Ledger) GetBlockByTxIDArgsForCall(i int) string

func (*Ledger) GetBlockByTxIDCallCount

func (fake *Ledger) GetBlockByTxIDCallCount() int

func (*Ledger) GetBlockByTxIDCalls

func (fake *Ledger) GetBlockByTxIDCalls(stub func(string) (*common.Block, error))

func (*Ledger) GetBlockByTxIDReturns

func (fake *Ledger) GetBlockByTxIDReturns(result1 *common.Block, result2 error)

func (*Ledger) GetBlockByTxIDReturnsOnCall

func (fake *Ledger) GetBlockByTxIDReturnsOnCall(i int, result1 *common.Block, result2 error)

func (*Ledger) GetBlockchainInfo

func (fake *Ledger) GetBlockchainInfo() (*common.BlockchainInfo, error)

func (*Ledger) GetBlockchainInfoCallCount

func (fake *Ledger) GetBlockchainInfoCallCount() int

func (*Ledger) GetBlockchainInfoCalls

func (fake *Ledger) GetBlockchainInfoCalls(stub func() (*common.BlockchainInfo, error))

func (*Ledger) GetBlockchainInfoReturns

func (fake *Ledger) GetBlockchainInfoReturns(result1 *common.BlockchainInfo, result2 error)

func (*Ledger) GetBlockchainInfoReturnsOnCall

func (fake *Ledger) GetBlockchainInfoReturnsOnCall(i int, result1 *common.BlockchainInfo, result2 error)

func (*Ledger) GetBlocksIterator

func (fake *Ledger) GetBlocksIterator(arg1 uint64) (ledgerb.ResultsIterator, error)

func (*Ledger) GetBlocksIteratorArgsForCall

func (fake *Ledger) GetBlocksIteratorArgsForCall(i int) uint64

func (*Ledger) GetBlocksIteratorCallCount

func (fake *Ledger) GetBlocksIteratorCallCount() int

func (*Ledger) GetBlocksIteratorCalls

func (fake *Ledger) GetBlocksIteratorCalls(stub func(uint64) (ledgerb.ResultsIterator, error))

func (*Ledger) GetBlocksIteratorReturns

func (fake *Ledger) GetBlocksIteratorReturns(result1 ledgerb.ResultsIterator, result2 error)

func (*Ledger) GetBlocksIteratorReturnsOnCall

func (fake *Ledger) GetBlocksIteratorReturnsOnCall(i int, result1 ledgerb.ResultsIterator, result2 error)

func (*Ledger) GetTxValidationCodeByTxID

func (fake *Ledger) GetTxValidationCodeByTxID(arg1 string) (peer.TxValidationCode, uint64, error)

func (*Ledger) GetTxValidationCodeByTxIDArgsForCall

func (fake *Ledger) GetTxValidationCodeByTxIDArgsForCall(i int) string

func (*Ledger) GetTxValidationCodeByTxIDCallCount

func (fake *Ledger) GetTxValidationCodeByTxIDCallCount() int

func (*Ledger) GetTxValidationCodeByTxIDCalls

func (fake *Ledger) GetTxValidationCodeByTxIDCalls(stub func(string) (peer.TxValidationCode, uint64, error))

func (*Ledger) GetTxValidationCodeByTxIDReturns

func (fake *Ledger) GetTxValidationCodeByTxIDReturns(result1 peer.TxValidationCode, result2 uint64, result3 error)

func (*Ledger) GetTxValidationCodeByTxIDReturnsOnCall

func (fake *Ledger) GetTxValidationCodeByTxIDReturnsOnCall(i int, result1 peer.TxValidationCode, result2 uint64, result3 error)

func (*Ledger) Invocations

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

type Provider

type Provider struct {
	LedgerStub func(string) (ledger.Ledger, error)
	// contains filtered or unexported fields
}

func (*Provider) Invocations

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

func (*Provider) Ledger

func (fake *Provider) Ledger(arg1 string) (ledger.Ledger, error)

func (*Provider) LedgerArgsForCall

func (fake *Provider) LedgerArgsForCall(i int) string

func (*Provider) LedgerCallCount

func (fake *Provider) LedgerCallCount() int

func (*Provider) LedgerCalls

func (fake *Provider) LedgerCalls(stub func(string) (ledger.Ledger, error))

func (*Provider) LedgerReturns

func (fake *Provider) LedgerReturns(result1 ledger.Ledger, result2 error)

func (*Provider) LedgerReturnsOnCall

func (fake *Provider) LedgerReturnsOnCall(i int, result1 ledger.Ledger, result2 error)

Jump to

Keyboard shortcuts

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