mock

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 4 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 BlockStoreProvider

type BlockStoreProvider struct {
	CloseStub func()

	DropStub func(string) error

	ListStub func() ([]string, error)

	OpenStub func(string) (*blkstorage.BlockStore, error)
	// contains filtered or unexported fields
}

func (*BlockStoreProvider) Close

func (fake *BlockStoreProvider) Close()

func (*BlockStoreProvider) CloseCallCount

func (fake *BlockStoreProvider) CloseCallCount() int

func (*BlockStoreProvider) CloseCalls

func (fake *BlockStoreProvider) CloseCalls(stub func())

func (*BlockStoreProvider) Drop

func (fake *BlockStoreProvider) Drop(arg1 string) error

func (*BlockStoreProvider) DropArgsForCall

func (fake *BlockStoreProvider) DropArgsForCall(i int) string

func (*BlockStoreProvider) DropCallCount

func (fake *BlockStoreProvider) DropCallCount() int

func (*BlockStoreProvider) DropCalls

func (fake *BlockStoreProvider) DropCalls(stub func(string) error)

func (*BlockStoreProvider) DropReturns

func (fake *BlockStoreProvider) DropReturns(result1 error)

func (*BlockStoreProvider) DropReturnsOnCall

func (fake *BlockStoreProvider) DropReturnsOnCall(i int, result1 error)

func (*BlockStoreProvider) Invocations

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

func (*BlockStoreProvider) List

func (fake *BlockStoreProvider) List() ([]string, error)

func (*BlockStoreProvider) ListCallCount

func (fake *BlockStoreProvider) ListCallCount() int

func (*BlockStoreProvider) ListCalls

func (fake *BlockStoreProvider) ListCalls(stub func() ([]string, error))

func (*BlockStoreProvider) ListReturns

func (fake *BlockStoreProvider) ListReturns(result1 []string, result2 error)

func (*BlockStoreProvider) ListReturnsOnCall

func (fake *BlockStoreProvider) ListReturnsOnCall(i int, result1 []string, result2 error)

func (*BlockStoreProvider) Open

func (fake *BlockStoreProvider) Open(arg1 string) (*blkstorage.BlockStore, error)

func (*BlockStoreProvider) OpenArgsForCall

func (fake *BlockStoreProvider) OpenArgsForCall(i int) string

func (*BlockStoreProvider) OpenCallCount

func (fake *BlockStoreProvider) OpenCallCount() int

func (*BlockStoreProvider) OpenCalls

func (fake *BlockStoreProvider) OpenCalls(stub func(string) (*blkstorage.BlockStore, error))

func (*BlockStoreProvider) OpenReturns

func (fake *BlockStoreProvider) OpenReturns(result1 *blkstorage.BlockStore, result2 error)

func (*BlockStoreProvider) OpenReturnsOnCall

func (fake *BlockStoreProvider) OpenReturnsOnCall(i int, result1 *blkstorage.BlockStore, result2 error)

type FileLedgerBlockStore

type FileLedgerBlockStore struct {
	AddBlockStub func(*common.Block) error

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

	RetrieveBlocksStub func(uint64) (ledger.ResultsIterator, error)

	ShutdownStub func()
	// contains filtered or unexported fields
}

func (*FileLedgerBlockStore) AddBlock

func (fake *FileLedgerBlockStore) AddBlock(arg1 *common.Block) error

func (*FileLedgerBlockStore) AddBlockArgsForCall

func (fake *FileLedgerBlockStore) AddBlockArgsForCall(i int) *common.Block

func (*FileLedgerBlockStore) AddBlockCallCount

func (fake *FileLedgerBlockStore) AddBlockCallCount() int

func (*FileLedgerBlockStore) AddBlockCalls

func (fake *FileLedgerBlockStore) AddBlockCalls(stub func(*common.Block) error)

func (*FileLedgerBlockStore) AddBlockReturns

func (fake *FileLedgerBlockStore) AddBlockReturns(result1 error)

func (*FileLedgerBlockStore) AddBlockReturnsOnCall

func (fake *FileLedgerBlockStore) AddBlockReturnsOnCall(i int, result1 error)

func (*FileLedgerBlockStore) GetBlockchainInfo

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

func (*FileLedgerBlockStore) GetBlockchainInfoCallCount

func (fake *FileLedgerBlockStore) GetBlockchainInfoCallCount() int

func (*FileLedgerBlockStore) GetBlockchainInfoCalls

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

func (*FileLedgerBlockStore) GetBlockchainInfoReturns

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

func (*FileLedgerBlockStore) GetBlockchainInfoReturnsOnCall

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

func (*FileLedgerBlockStore) Invocations

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

func (*FileLedgerBlockStore) RetrieveBlocks

func (fake *FileLedgerBlockStore) RetrieveBlocks(arg1 uint64) (ledger.ResultsIterator, error)

func (*FileLedgerBlockStore) RetrieveBlocksArgsForCall

func (fake *FileLedgerBlockStore) RetrieveBlocksArgsForCall(i int) uint64

func (*FileLedgerBlockStore) RetrieveBlocksCallCount

func (fake *FileLedgerBlockStore) RetrieveBlocksCallCount() int

func (*FileLedgerBlockStore) RetrieveBlocksCalls

func (fake *FileLedgerBlockStore) RetrieveBlocksCalls(stub func(uint64) (ledger.ResultsIterator, error))

func (*FileLedgerBlockStore) RetrieveBlocksReturns

func (fake *FileLedgerBlockStore) RetrieveBlocksReturns(result1 ledger.ResultsIterator, result2 error)

func (*FileLedgerBlockStore) RetrieveBlocksReturnsOnCall

func (fake *FileLedgerBlockStore) RetrieveBlocksReturnsOnCall(i int, result1 ledger.ResultsIterator, result2 error)

func (*FileLedgerBlockStore) Shutdown

func (fake *FileLedgerBlockStore) Shutdown()

func (*FileLedgerBlockStore) ShutdownCallCount

func (fake *FileLedgerBlockStore) ShutdownCallCount() int

func (*FileLedgerBlockStore) ShutdownCalls

func (fake *FileLedgerBlockStore) ShutdownCalls(stub func())

Jump to

Keyboard shortcuts

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