mock

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResultsIterator

type ResultsIterator struct {
	NextStub func() (statedb.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 (fake *ResultsIterator) Next() (statedb.QueryResult, error)

func (*ResultsIterator) NextCallCount

func (fake *ResultsIterator) NextCallCount() int

func (*ResultsIterator) NextReturns

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

func (*ResultsIterator) NextReturnsOnCall

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

type VersionedDB

type VersionedDB struct {
	GetStateStub func(namespace string, key string) (*statedb.VersionedValue, error)

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

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

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

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

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

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

	ApplyUpdatesStub func(batch *statedb.UpdateBatch, height *version.Height) error

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

	ValidateKeyValueStub func(key string, value []byte) error

	BytesKeySupportedStub func() bool

	OpenStub func() error

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

func (*VersionedDB) ApplyUpdates

func (fake *VersionedDB) ApplyUpdates(batch *statedb.UpdateBatch, height *version.Height) error

func (*VersionedDB) ApplyUpdatesArgsForCall

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

func (*VersionedDB) ApplyUpdatesCallCount

func (fake *VersionedDB) ApplyUpdatesCallCount() int

func (*VersionedDB) ApplyUpdatesReturns

func (fake *VersionedDB) ApplyUpdatesReturns(result1 error)

func (*VersionedDB) ApplyUpdatesReturnsOnCall

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

func (*VersionedDB) BytesKeySupported

func (fake *VersionedDB) BytesKeySupported() bool

func (*VersionedDB) BytesKeySupportedCallCount

func (fake *VersionedDB) BytesKeySupportedCallCount() int

func (*VersionedDB) BytesKeySupportedReturns

func (fake *VersionedDB) BytesKeySupportedReturns(result1 bool)

func (*VersionedDB) BytesKeySupportedReturnsOnCall

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

func (*VersionedDB) Close

func (fake *VersionedDB) Close()

func (*VersionedDB) CloseCallCount

func (fake *VersionedDB) CloseCallCount() int

func (*VersionedDB) ExecuteQuery

func (fake *VersionedDB) ExecuteQuery(namespace string, query string) (statedb.ResultsIterator, error)

func (*VersionedDB) ExecuteQueryArgsForCall

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

func (*VersionedDB) ExecuteQueryCallCount

func (fake *VersionedDB) ExecuteQueryCallCount() int

func (*VersionedDB) ExecuteQueryReturns

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

func (*VersionedDB) ExecuteQueryReturnsOnCall

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

func (*VersionedDB) ExecuteQueryWithMetadata

func (fake *VersionedDB) ExecuteQueryWithMetadata(namespace string, query string, metadata map[string]interface{}) (statedb.QueryResultsIterator, error)

func (*VersionedDB) ExecuteQueryWithMetadataArgsForCall

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

func (*VersionedDB) ExecuteQueryWithMetadataCallCount

func (fake *VersionedDB) ExecuteQueryWithMetadataCallCount() int

func (*VersionedDB) ExecuteQueryWithMetadataReturns

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

func (*VersionedDB) ExecuteQueryWithMetadataReturnsOnCall

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

func (*VersionedDB) GetLatestSavePoint

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

func (*VersionedDB) GetLatestSavePointCallCount

func (fake *VersionedDB) GetLatestSavePointCallCount() int

func (*VersionedDB) GetLatestSavePointReturns

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

func (*VersionedDB) GetLatestSavePointReturnsOnCall

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

func (*VersionedDB) GetState

func (fake *VersionedDB) GetState(namespace string, key string) (*statedb.VersionedValue, error)

func (*VersionedDB) GetStateArgsForCall

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

func (*VersionedDB) GetStateCallCount

func (fake *VersionedDB) GetStateCallCount() int

func (*VersionedDB) GetStateMultipleKeys

func (fake *VersionedDB) GetStateMultipleKeys(namespace string, keys []string) ([]*statedb.VersionedValue, error)

func (*VersionedDB) GetStateMultipleKeysArgsForCall

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

func (*VersionedDB) GetStateMultipleKeysCallCount

func (fake *VersionedDB) GetStateMultipleKeysCallCount() int

func (*VersionedDB) GetStateMultipleKeysReturns

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

func (*VersionedDB) GetStateMultipleKeysReturnsOnCall

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

func (*VersionedDB) GetStateRangeScanIterator

func (fake *VersionedDB) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (statedb.ResultsIterator, error)

func (*VersionedDB) GetStateRangeScanIteratorArgsForCall

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

func (*VersionedDB) GetStateRangeScanIteratorCallCount

func (fake *VersionedDB) GetStateRangeScanIteratorCallCount() int

func (*VersionedDB) GetStateRangeScanIteratorReturns

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

func (*VersionedDB) GetStateRangeScanIteratorReturnsOnCall

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

func (*VersionedDB) GetStateRangeScanIteratorWithMetadata

func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadata(namespace string, startKey string, endKey string, metadata map[string]interface{}) (statedb.QueryResultsIterator, error)

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataArgsForCall

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

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataCallCount

func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataCallCount() int

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataReturns

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

func (*VersionedDB) GetStateRangeScanIteratorWithMetadataReturnsOnCall

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

func (*VersionedDB) GetStateReturns

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

func (*VersionedDB) GetStateReturnsOnCall

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

func (*VersionedDB) GetVersion

func (fake *VersionedDB) GetVersion(namespace string, key string) (*version.Height, error)

func (*VersionedDB) GetVersionArgsForCall

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

func (*VersionedDB) GetVersionCallCount

func (fake *VersionedDB) GetVersionCallCount() int

func (*VersionedDB) GetVersionReturns

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

func (*VersionedDB) GetVersionReturnsOnCall

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

func (*VersionedDB) Invocations

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

func (*VersionedDB) Open

func (fake *VersionedDB) Open() error

func (*VersionedDB) OpenCallCount

func (fake *VersionedDB) OpenCallCount() int

func (*VersionedDB) OpenReturns

func (fake *VersionedDB) OpenReturns(result1 error)

func (*VersionedDB) OpenReturnsOnCall

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

func (*VersionedDB) ValidateKeyValue

func (fake *VersionedDB) ValidateKeyValue(key string, value []byte) error

func (*VersionedDB) ValidateKeyValueArgsForCall

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

func (*VersionedDB) ValidateKeyValueCallCount

func (fake *VersionedDB) ValidateKeyValueCallCount() int

func (*VersionedDB) ValidateKeyValueReturns

func (fake *VersionedDB) ValidateKeyValueReturns(result1 error)

func (*VersionedDB) ValidateKeyValueReturnsOnCall

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

Jump to

Keyboard shortcuts

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