fabric: github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/mock Index | Files

package mock

import "github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/mock"

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

results_iterator.go versioned_db.go

type ResultsIterator Uses

type ResultsIterator struct {
    CloseStub func()

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

func (*ResultsIterator) Close Uses

func (fake *ResultsIterator) Close()

func (*ResultsIterator) CloseCallCount Uses

func (fake *ResultsIterator) CloseCallCount() int

func (*ResultsIterator) CloseCalls Uses

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

func (*ResultsIterator) Invocations Uses

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

func (*ResultsIterator) Next Uses

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

func (*ResultsIterator) NextCallCount Uses

func (fake *ResultsIterator) NextCallCount() int

func (*ResultsIterator) NextCalls Uses

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

func (*ResultsIterator) NextReturns Uses

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

func (*ResultsIterator) NextReturnsOnCall Uses

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

type VersionedDB Uses

type VersionedDB struct {
    ApplyUpdatesStub func(*statedb.UpdateBatch, *version.Height) error

    BytesKeySupportedStub func() bool

    CloseStub func()

    ExecuteQueryStub func(string, string) (statedb.ResultsIterator, error)

    ExecuteQueryWithMetadataStub func(string, string, map[string]interface{}) (statedb.QueryResultsIterator, error)

    GetLatestSavePointStub func() (*version.Height, error)

    GetStateStub func(string, string) (*statedb.VersionedValue, error)

    GetStateMultipleKeysStub func(string, []string) ([]*statedb.VersionedValue, error)

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

    GetStateRangeScanIteratorWithMetadataStub func(string, string, string, map[string]interface{}) (statedb.QueryResultsIterator, error)

    GetVersionStub func(string, string) (*version.Height, error)

    OpenStub func() error

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

func (*VersionedDB) ApplyUpdates Uses

func (fake *VersionedDB) ApplyUpdates(arg1 *statedb.UpdateBatch, arg2 *version.Height) error

func (*VersionedDB) ApplyUpdatesArgsForCall Uses

func (fake *VersionedDB) ApplyUpdatesArgsForCall(i int) (*statedb.UpdateBatch, *version.Height)

func (*VersionedDB) ApplyUpdatesCallCount Uses

func (fake *VersionedDB) ApplyUpdatesCallCount() int

func (*VersionedDB) ApplyUpdatesCalls Uses

func (fake *VersionedDB) ApplyUpdatesCalls(stub func(*statedb.UpdateBatch, *version.Height) error)

func (*VersionedDB) ApplyUpdatesReturns Uses

func (fake *VersionedDB) ApplyUpdatesReturns(result1 error)

func (*VersionedDB) ApplyUpdatesReturnsOnCall Uses

func (fake *VersionedDB) ApplyUpdatesReturnsOnCall(i int, result1 error)

func (*VersionedDB) BytesKeySupported Uses

func (fake *VersionedDB) BytesKeySupported() bool

func (*VersionedDB) BytesKeySupportedCallCount Uses

func (fake *VersionedDB) BytesKeySupportedCallCount() int

func (*VersionedDB) BytesKeySupportedCalls Uses

func (fake *VersionedDB) BytesKeySupportedCalls(stub func() bool)

func (*VersionedDB) BytesKeySupportedReturns Uses

func (fake *VersionedDB) BytesKeySupportedReturns(result1 bool)

func (*VersionedDB) BytesKeySupportedReturnsOnCall Uses

func (fake *VersionedDB) BytesKeySupportedReturnsOnCall(i int, result1 bool)

func (*VersionedDB) Close Uses

func (fake *VersionedDB) Close()

func (*VersionedDB) CloseCallCount Uses

func (fake *VersionedDB) CloseCallCount() int

func (*VersionedDB) CloseCalls Uses

func (fake *VersionedDB) CloseCalls(stub func())

func (*VersionedDB) ExecuteQuery Uses

func (fake *VersionedDB) ExecuteQuery(arg1 string, arg2 string) (statedb.ResultsIterator, error)

func (*VersionedDB) ExecuteQueryArgsForCall Uses

func (fake *VersionedDB) ExecuteQueryArgsForCall(i int) (string, string)

func (*VersionedDB) ExecuteQueryCallCount Uses

func (fake *VersionedDB) ExecuteQueryCallCount() int

func (*VersionedDB) ExecuteQueryCalls Uses

func (fake *VersionedDB) ExecuteQueryCalls(stub func(string, string) (statedb.ResultsIterator, error))

func (*VersionedDB) ExecuteQueryReturns Uses

func (fake *VersionedDB) ExecuteQueryReturns(result1 statedb.ResultsIterator, result2 error)

func (*VersionedDB) ExecuteQueryReturnsOnCall Uses

func (fake *VersionedDB) ExecuteQueryReturnsOnCall(i int, result1 statedb.ResultsIterator, result2 error)

func (*VersionedDB) ExecuteQueryWithMetadata Uses

func (fake *VersionedDB) ExecuteQueryWithMetadata(arg1 string, arg2 string, arg3 map[string]interface{}) (statedb.QueryResultsIterator, error)

func (*VersionedDB) ExecuteQueryWithMetadataArgsForCall Uses

func (fake *VersionedDB) ExecuteQueryWithMetadataArgsForCall(i int) (string, string, map[string]interface{})

func (*VersionedDB) ExecuteQueryWithMetadataCallCount Uses

func (fake *VersionedDB) ExecuteQueryWithMetadataCallCount() int

func (*VersionedDB) ExecuteQueryWithMetadataCalls Uses

func (fake *VersionedDB) ExecuteQueryWithMetadataCalls(stub func(string, string, map[string]interface{}) (statedb.QueryResultsIterator, error))

func (*VersionedDB) ExecuteQueryWithMetadataReturns Uses

func (fake *VersionedDB) ExecuteQueryWithMetadataReturns(result1 statedb.QueryResultsIterator, result2 error)

func (*VersionedDB) ExecuteQueryWithMetadataReturnsOnCall Uses

func (fake *VersionedDB) ExecuteQueryWithMetadataReturnsOnCall(i int, result1 statedb.QueryResultsIterator, result2 error)

func (*VersionedDB) GetLatestSavePoint Uses

func (fake *VersionedDB) GetLatestSavePoint() (*version.Height, error)

func (*VersionedDB) GetLatestSavePointCallCount Uses

func (fake *VersionedDB) GetLatestSavePointCallCount() int

func (*VersionedDB) GetLatestSavePointCalls Uses

func (fake *VersionedDB) GetLatestSavePointCalls(stub func() (*version.Height, error))

func (*VersionedDB) GetLatestSavePointReturns Uses

func (fake *VersionedDB) GetLatestSavePointReturns(result1 *version.Height, result2 error)

func (*VersionedDB) GetLatestSavePointReturnsOnCall Uses

func (fake *VersionedDB) GetLatestSavePointReturnsOnCall(i int, result1 *version.Height, result2 error)

func (*VersionedDB) GetState Uses

func (fake *VersionedDB) GetState(arg1 string, arg2 string) (*statedb.VersionedValue, error)

func (*VersionedDB) GetStateArgsForCall Uses

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

func (*VersionedDB) GetStateCallCount Uses

func (fake *VersionedDB) GetStateCallCount() int

func (*VersionedDB) GetStateCalls Uses

func (fake *VersionedDB) GetStateCalls(stub func(string, string) (*statedb.VersionedValue, error))

func (*VersionedDB) GetStateMultipleKeys Uses

func (fake *VersionedDB) GetStateMultipleKeys(arg1 string, arg2 []string) ([]*statedb.VersionedValue, error)

func (*VersionedDB) GetStateMultipleKeysArgsForCall Uses

func (fake *VersionedDB) GetStateMultipleKeysArgsForCall(i int) (string, []string)

func (*VersionedDB) GetStateMultipleKeysCallCount Uses

func (fake *VersionedDB) GetStateMultipleKeysCallCount() int

func (*VersionedDB) GetStateMultipleKeysCalls Uses

func (fake *VersionedDB) GetStateMultipleKeysCalls(stub func(string, []string) ([]*statedb.VersionedValue, error))

func (*VersionedDB) GetStateMultipleKeysReturns Uses

func (fake *VersionedDB) GetStateMultipleKeysReturns(result1 []*statedb.VersionedValue, result2 error)

func (*VersionedDB) GetStateMultipleKeysReturnsOnCall Uses

func (fake *VersionedDB) GetStateMultipleKeysReturnsOnCall(i int, result1 []*statedb.VersionedValue, result2 error)

func (*VersionedDB) GetStateRangeScanIterator Uses

func (fake *VersionedDB) GetStateRangeScanIterator(arg1 string, arg2 string, arg3 string) (statedb.ResultsIterator, error)

func (*VersionedDB) GetStateRangeScanIteratorArgsForCall Uses

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

func (*VersionedDB) GetStateRangeScanIteratorCallCount Uses

func (fake *VersionedDB) GetStateRangeScanIteratorCallCount() int

func (*VersionedDB) GetStateRangeScanIteratorCalls Uses

func (fake *VersionedDB) GetStateRangeScanIteratorCalls(stub func(string, string, string) (statedb.ResultsIterator, error))

func (*VersionedDB) GetStateRangeScanIteratorReturns Uses

func (fake *VersionedDB) GetStateRangeScanIteratorReturns(result1 statedb.ResultsIterator, result2 error)

func (*VersionedDB) GetStateRangeScanIteratorReturnsOnCall Uses

func (fake *VersionedDB) GetStateRangeScanIteratorReturnsOnCall(i int, result1 statedb.ResultsIterator, result2 error)

func (*VersionedDB) GetStateRangeScanIteratorWithMetadata Uses

func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadata(arg1 string, arg2 string, arg3 string, arg4 map[string]interface{}) (statedb.QueryResultsIterator, error)

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataArgsForCall Uses

func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataArgsForCall(i int) (string, string, string, map[string]interface{})

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataCallCount Uses

func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataCallCount() int

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataCalls Uses

func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataCalls(stub func(string, string, string, map[string]interface{}) (statedb.QueryResultsIterator, error))

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataReturns Uses

func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataReturns(result1 statedb.QueryResultsIterator, result2 error)

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataReturnsOnCall Uses

func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataReturnsOnCall(i int, result1 statedb.QueryResultsIterator, result2 error)

func (*VersionedDB) GetStateReturns Uses

func (fake *VersionedDB) GetStateReturns(result1 *statedb.VersionedValue, result2 error)

func (*VersionedDB) GetStateReturnsOnCall Uses

func (fake *VersionedDB) GetStateReturnsOnCall(i int, result1 *statedb.VersionedValue, result2 error)

func (*VersionedDB) GetVersion Uses

func (fake *VersionedDB) GetVersion(arg1 string, arg2 string) (*version.Height, error)

func (*VersionedDB) GetVersionArgsForCall Uses

func (fake *VersionedDB) GetVersionArgsForCall(i int) (string, string)

func (*VersionedDB) GetVersionCallCount Uses

func (fake *VersionedDB) GetVersionCallCount() int

func (*VersionedDB) GetVersionCalls Uses

func (fake *VersionedDB) GetVersionCalls(stub func(string, string) (*version.Height, error))

func (*VersionedDB) GetVersionReturns Uses

func (fake *VersionedDB) GetVersionReturns(result1 *version.Height, result2 error)

func (*VersionedDB) GetVersionReturnsOnCall Uses

func (fake *VersionedDB) GetVersionReturnsOnCall(i int, result1 *version.Height, result2 error)

func (*VersionedDB) Invocations Uses

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

func (*VersionedDB) Open Uses

func (fake *VersionedDB) Open() error

func (*VersionedDB) OpenCallCount Uses

func (fake *VersionedDB) OpenCallCount() int

func (*VersionedDB) OpenCalls Uses

func (fake *VersionedDB) OpenCalls(stub func() error)

func (*VersionedDB) OpenReturns Uses

func (fake *VersionedDB) OpenReturns(result1 error)

func (*VersionedDB) OpenReturnsOnCall Uses

func (fake *VersionedDB) OpenReturnsOnCall(i int, result1 error)

func (*VersionedDB) ValidateKeyValue Uses

func (fake *VersionedDB) ValidateKeyValue(arg1 string, arg2 []byte) error

func (*VersionedDB) ValidateKeyValueArgsForCall Uses

func (fake *VersionedDB) ValidateKeyValueArgsForCall(i int) (string, []byte)

func (*VersionedDB) ValidateKeyValueCallCount Uses

func (fake *VersionedDB) ValidateKeyValueCallCount() int

func (*VersionedDB) ValidateKeyValueCalls Uses

func (fake *VersionedDB) ValidateKeyValueCalls(stub func(string, []byte) error)

func (*VersionedDB) ValidateKeyValueReturns Uses

func (fake *VersionedDB) ValidateKeyValueReturns(result1 error)

func (*VersionedDB) ValidateKeyValueReturnsOnCall Uses

func (fake *VersionedDB) ValidateKeyValueReturnsOnCall(i int, result1 error)

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