mock

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 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(string) (ledger.LedgerReader, error)
	// contains filtered or unexported fields
}

func (*LedgerManager) GetLedgerReader

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

func (*LedgerManager) GetLedgerReaderArgsForCall

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

func (*LedgerManager) GetLedgerReaderCallCount

func (fake *LedgerManager) GetLedgerReaderCallCount() int

func (*LedgerManager) GetLedgerReaderCalls

func (fake *LedgerManager) GetLedgerReaderCalls(stub func(string) (ledger.LedgerReader, error))

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 {
	DoneStub func()

	GetStateStub func(string, string) ([]byte, error)

	GetStateRangeScanIteratorStub func(string, string, string) (ledgera.ResultsIterator, error)
	// contains filtered or unexported fields
}

func (*LedgerReader) Done

func (fake *LedgerReader) Done()

func (*LedgerReader) DoneCallCount

func (fake *LedgerReader) DoneCallCount() int

func (*LedgerReader) DoneCalls

func (fake *LedgerReader) DoneCalls(stub func())

func (*LedgerReader) GetState

func (fake *LedgerReader) GetState(arg1 string, arg2 string) ([]byte, error)

func (*LedgerReader) GetStateArgsForCall

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

func (*LedgerReader) GetStateCallCount

func (fake *LedgerReader) GetStateCallCount() int

func (*LedgerReader) GetStateCalls

func (fake *LedgerReader) GetStateCalls(stub func(string, string) ([]byte, error))

func (*LedgerReader) GetStateRangeScanIterator

func (fake *LedgerReader) GetStateRangeScanIterator(arg1 string, arg2 string, arg3 string) (ledgera.ResultsIterator, error)

func (*LedgerReader) GetStateRangeScanIteratorArgsForCall

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

func (*LedgerReader) GetStateRangeScanIteratorCallCount

func (fake *LedgerReader) GetStateRangeScanIteratorCallCount() int

func (*LedgerReader) GetStateRangeScanIteratorCalls

func (fake *LedgerReader) GetStateRangeScanIteratorCalls(stub func(string, string, string) (ledgera.ResultsIterator, error))

func (*LedgerReader) GetStateRangeScanIteratorReturns

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

func (*LedgerReader) GetStateRangeScanIteratorReturnsOnCall

func (fake *LedgerReader) GetStateRangeScanIteratorReturnsOnCall(i int, result1 ledgera.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 {
	DeleteStateStub func(string, string) error

	DoneStub func()

	GetStateStub func(string, string) ([]byte, error)

	GetStateRangeScanIteratorStub func(string, string, string) (ledgera.ResultsIterator, error)

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

func (*LedgerWriter) DeleteState

func (fake *LedgerWriter) DeleteState(arg1 string, arg2 string) error

func (*LedgerWriter) DeleteStateArgsForCall

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

func (*LedgerWriter) DeleteStateCallCount

func (fake *LedgerWriter) DeleteStateCallCount() int

func (*LedgerWriter) DeleteStateCalls

func (fake *LedgerWriter) DeleteStateCalls(stub func(string, string) error)

func (*LedgerWriter) DeleteStateReturns

func (fake *LedgerWriter) DeleteStateReturns(result1 error)

func (*LedgerWriter) DeleteStateReturnsOnCall

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

func (*LedgerWriter) Done

func (fake *LedgerWriter) Done()

func (*LedgerWriter) DoneCallCount

func (fake *LedgerWriter) DoneCallCount() int

func (*LedgerWriter) DoneCalls

func (fake *LedgerWriter) DoneCalls(stub func())

func (*LedgerWriter) GetState

func (fake *LedgerWriter) GetState(arg1 string, arg2 string) ([]byte, error)

func (*LedgerWriter) GetStateArgsForCall

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

func (*LedgerWriter) GetStateCallCount

func (fake *LedgerWriter) GetStateCallCount() int

func (*LedgerWriter) GetStateCalls

func (fake *LedgerWriter) GetStateCalls(stub func(string, string) ([]byte, error))

func (*LedgerWriter) GetStateRangeScanIterator

func (fake *LedgerWriter) GetStateRangeScanIterator(arg1 string, arg2 string, arg3 string) (ledgera.ResultsIterator, error)

func (*LedgerWriter) GetStateRangeScanIteratorArgsForCall

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

func (*LedgerWriter) GetStateRangeScanIteratorCallCount

func (fake *LedgerWriter) GetStateRangeScanIteratorCallCount() int

func (*LedgerWriter) GetStateRangeScanIteratorCalls

func (fake *LedgerWriter) GetStateRangeScanIteratorCalls(stub func(string, string, string) (ledgera.ResultsIterator, error))

func (*LedgerWriter) GetStateRangeScanIteratorReturns

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

func (*LedgerWriter) GetStateRangeScanIteratorReturnsOnCall

func (fake *LedgerWriter) GetStateRangeScanIteratorReturnsOnCall(i int, result1 ledgera.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(arg1 string, arg2 string, arg3 []byte) error

func (*LedgerWriter) SetStateArgsForCall

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

func (*LedgerWriter) SetStateCallCount

func (fake *LedgerWriter) SetStateCallCount() int

func (*LedgerWriter) SetStateCalls

func (fake *LedgerWriter) SetStateCalls(stub func(string, string, []byte) error)

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 {
	CloseStub func()

	NextStub func() (ledgera.QueryResult, error)
	// contains filtered or unexported fields
}

func (*ResultsIterator) Close

func (fake *ResultsIterator) Close()

func (*ResultsIterator) CloseCallCount

func (fake *ResultsIterator) CloseCallCount() int

func (*ResultsIterator) CloseCalls

func (fake *ResultsIterator) CloseCalls(stub func())

func (*ResultsIterator) Invocations

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

func (*ResultsIterator) Next

func (fake *ResultsIterator) Next() (ledgera.QueryResult, error)

func (*ResultsIterator) NextCallCount

func (fake *ResultsIterator) NextCallCount() int

func (*ResultsIterator) NextCalls

func (fake *ResultsIterator) NextCalls(stub func() (ledgera.QueryResult, error))

func (*ResultsIterator) NextReturns

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

func (*ResultsIterator) NextReturnsOnCall

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

Jump to

Keyboard shortcuts

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