fabric: github.com/hyperledger/fabric/token/ledger/mock Index | Files

package mock

import "github.com/hyperledger/fabric/token/ledger/mock"

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

Package Files

ledger_manager.go ledger_reader.go ledger_writer.go results_iterator.go

type LedgerManager Uses

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

func (*LedgerManager) GetLedgerReader Uses

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

func (*LedgerManager) GetLedgerReaderArgsForCall Uses

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

func (*LedgerManager) GetLedgerReaderCallCount Uses

func (fake *LedgerManager) GetLedgerReaderCallCount() int

func (*LedgerManager) GetLedgerReaderReturns Uses

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

func (*LedgerManager) GetLedgerReaderReturnsOnCall Uses

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

func (*LedgerManager) Invocations Uses

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

type LedgerReader Uses

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 Uses

func (fake *LedgerReader) Done()

func (*LedgerReader) DoneCallCount Uses

func (fake *LedgerReader) DoneCallCount() int

func (*LedgerReader) GetState Uses

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

func (*LedgerReader) GetStateArgsForCall Uses

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

func (*LedgerReader) GetStateCallCount Uses

func (fake *LedgerReader) GetStateCallCount() int

func (*LedgerReader) GetStateRangeScanIterator Uses

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

func (*LedgerReader) GetStateRangeScanIteratorArgsForCall Uses

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

func (*LedgerReader) GetStateRangeScanIteratorCallCount Uses

func (fake *LedgerReader) GetStateRangeScanIteratorCallCount() int

func (*LedgerReader) GetStateRangeScanIteratorReturns Uses

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

func (*LedgerReader) GetStateRangeScanIteratorReturnsOnCall Uses

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

func (*LedgerReader) GetStateReturns Uses

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

func (*LedgerReader) GetStateReturnsOnCall Uses

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

func (*LedgerReader) Invocations Uses

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

type LedgerWriter Uses

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 Uses

func (fake *LedgerWriter) Done()

func (*LedgerWriter) DoneCallCount Uses

func (fake *LedgerWriter) DoneCallCount() int

func (*LedgerWriter) GetState Uses

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

func (*LedgerWriter) GetStateArgsForCall Uses

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

func (*LedgerWriter) GetStateCallCount Uses

func (fake *LedgerWriter) GetStateCallCount() int

func (*LedgerWriter) GetStateRangeScanIterator Uses

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

func (*LedgerWriter) GetStateRangeScanIteratorArgsForCall Uses

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

func (*LedgerWriter) GetStateRangeScanIteratorCallCount Uses

func (fake *LedgerWriter) GetStateRangeScanIteratorCallCount() int

func (*LedgerWriter) GetStateRangeScanIteratorReturns Uses

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

func (*LedgerWriter) GetStateRangeScanIteratorReturnsOnCall Uses

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

func (*LedgerWriter) GetStateReturns Uses

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

func (*LedgerWriter) GetStateReturnsOnCall Uses

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

func (*LedgerWriter) Invocations Uses

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

func (*LedgerWriter) SetState Uses

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

func (*LedgerWriter) SetStateArgsForCall Uses

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

func (*LedgerWriter) SetStateCallCount Uses

func (fake *LedgerWriter) SetStateCallCount() int

func (*LedgerWriter) SetStateReturns Uses

func (fake *LedgerWriter) SetStateReturns(result1 error)

func (*LedgerWriter) SetStateReturnsOnCall Uses

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

type ResultsIterator Uses

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

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

func (*ResultsIterator) Close Uses

func (fake *ResultsIterator) Close()

func (*ResultsIterator) CloseCallCount Uses

func (fake *ResultsIterator) CloseCallCount() int

func (*ResultsIterator) Invocations Uses

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

func (*ResultsIterator) Next Uses

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

func (*ResultsIterator) NextCallCount Uses

func (fake *ResultsIterator) NextCallCount() int

func (*ResultsIterator) NextReturns Uses

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

func (*ResultsIterator) NextReturnsOnCall Uses

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

Package mock imports 3 packages (graph). Updated 2018-12-11. Refresh now. Tools for package owners.