mock

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 3 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.

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 LedgerManager

type LedgerManager struct {
	GetLedgerReaderStub func(channel string) (ledger.LedgerReader, error)
	// contains filtered or unexported fields
}

func (*LedgerManager) GetLedgerReader

func (fake *LedgerManager) GetLedgerReader(channel string) (ledger.LedgerReader, error)

func (*LedgerManager) GetLedgerReaderArgsForCall

func (fake *LedgerManager) GetLedgerReaderArgsForCall(i int) string

func (*LedgerManager) GetLedgerReaderCallCount

func (fake *LedgerManager) GetLedgerReaderCallCount() int

func (*LedgerManager) GetLedgerReaderReturns

func (fake *LedgerManager) GetLedgerReaderReturns(result1 ledger.LedgerReader, result2 error)

func (*LedgerManager) GetLedgerReaderReturnsOnCall

func (fake *LedgerManager) GetLedgerReaderReturnsOnCall(i int, result1 ledger.LedgerReader, result2 error)

func (*LedgerManager) Invocations

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

type LedgerReader

type LedgerReader struct {
	GetStateStub func(namespace string, key string) ([]byte, error)

	GetStateRangeScanIteratorStub func(namespace string, startKey string, endKey string) (ledgercommon.ResultsIterator, error)

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

func (*LedgerReader) Done

func (fake *LedgerReader) Done()

func (*LedgerReader) DoneCallCount

func (fake *LedgerReader) DoneCallCount() int

func (*LedgerReader) GetState

func (fake *LedgerReader) GetState(namespace string, key string) ([]byte, error)

func (*LedgerReader) GetStateArgsForCall

func (fake *LedgerReader) GetStateArgsForCall(i int) (string, string)

func (*LedgerReader) GetStateCallCount

func (fake *LedgerReader) GetStateCallCount() int

func (*LedgerReader) GetStateRangeScanIterator

func (fake *LedgerReader) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ledgercommon.ResultsIterator, error)

func (*LedgerReader) GetStateRangeScanIteratorArgsForCall

func (fake *LedgerReader) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string)

func (*LedgerReader) GetStateRangeScanIteratorCallCount

func (fake *LedgerReader) GetStateRangeScanIteratorCallCount() int

func (*LedgerReader) GetStateRangeScanIteratorReturns

func (fake *LedgerReader) GetStateRangeScanIteratorReturns(result1 ledgercommon.ResultsIterator, result2 error)

func (*LedgerReader) GetStateRangeScanIteratorReturnsOnCall

func (fake *LedgerReader) GetStateRangeScanIteratorReturnsOnCall(i int, result1 ledgercommon.ResultsIterator, result2 error)

func (*LedgerReader) GetStateReturns

func (fake *LedgerReader) GetStateReturns(result1 []byte, result2 error)

func (*LedgerReader) GetStateReturnsOnCall

func (fake *LedgerReader) GetStateReturnsOnCall(i int, result1 []byte, result2 error)

func (*LedgerReader) Invocations

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

type LedgerWriter

type LedgerWriter struct {
	GetStateStub func(namespace string, key string) ([]byte, error)

	GetStateRangeScanIteratorStub func(namespace string, startKey string, endKey string) (ledgercommon.ResultsIterator, error)

	DoneStub func()

	SetStateStub func(namespace string, key string, value []byte) error
	// contains filtered or unexported fields
}

func (*LedgerWriter) Done

func (fake *LedgerWriter) Done()

func (*LedgerWriter) DoneCallCount

func (fake *LedgerWriter) DoneCallCount() int

func (*LedgerWriter) GetState

func (fake *LedgerWriter) GetState(namespace string, key string) ([]byte, error)

func (*LedgerWriter) GetStateArgsForCall

func (fake *LedgerWriter) GetStateArgsForCall(i int) (string, string)

func (*LedgerWriter) GetStateCallCount

func (fake *LedgerWriter) GetStateCallCount() int

func (*LedgerWriter) GetStateRangeScanIterator

func (fake *LedgerWriter) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ledgercommon.ResultsIterator, error)

func (*LedgerWriter) GetStateRangeScanIteratorArgsForCall

func (fake *LedgerWriter) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string)

func (*LedgerWriter) GetStateRangeScanIteratorCallCount

func (fake *LedgerWriter) GetStateRangeScanIteratorCallCount() int

func (*LedgerWriter) GetStateRangeScanIteratorReturns

func (fake *LedgerWriter) GetStateRangeScanIteratorReturns(result1 ledgercommon.ResultsIterator, result2 error)

func (*LedgerWriter) GetStateRangeScanIteratorReturnsOnCall

func (fake *LedgerWriter) GetStateRangeScanIteratorReturnsOnCall(i int, result1 ledgercommon.ResultsIterator, result2 error)

func (*LedgerWriter) GetStateReturns

func (fake *LedgerWriter) GetStateReturns(result1 []byte, result2 error)

func (*LedgerWriter) GetStateReturnsOnCall

func (fake *LedgerWriter) GetStateReturnsOnCall(i int, result1 []byte, result2 error)

func (*LedgerWriter) Invocations

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

func (*LedgerWriter) SetState

func (fake *LedgerWriter) SetState(namespace string, key string, value []byte) error

func (*LedgerWriter) SetStateArgsForCall

func (fake *LedgerWriter) SetStateArgsForCall(i int) (string, string, []byte)

func (*LedgerWriter) SetStateCallCount

func (fake *LedgerWriter) SetStateCallCount() int

func (*LedgerWriter) SetStateReturns

func (fake *LedgerWriter) SetStateReturns(result1 error)

func (*LedgerWriter) SetStateReturnsOnCall

func (fake *LedgerWriter) SetStateReturnsOnCall(i int, result1 error)

type ResultsIterator

type ResultsIterator struct {
	NextStub func() (ledgercommon.QueryResult, error)

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

func (*ResultsIterator) Close

func (fake *ResultsIterator) Close()

func (*ResultsIterator) CloseCallCount

func (fake *ResultsIterator) CloseCallCount() int

func (*ResultsIterator) Invocations

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

func (*ResultsIterator) Next

func (*ResultsIterator) NextCallCount

func (fake *ResultsIterator) NextCallCount() int

func (*ResultsIterator) NextReturns

func (fake *ResultsIterator) NextReturns(result1 ledgercommon.QueryResult, result2 error)

func (*ResultsIterator) NextReturnsOnCall

func (fake *ResultsIterator) NextReturnsOnCall(i int, result1 ledgercommon.QueryResult, result2 error)

Jump to

Keyboard shortcuts

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