mock

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceProvider

type NamespaceProvider struct {
	PossibleNamespacesStub func(statedb.VersionedDB) ([]string, error)
	// contains filtered or unexported fields
}

func (*NamespaceProvider) Invocations

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

func (*NamespaceProvider) PossibleNamespaces

func (fake *NamespaceProvider) PossibleNamespaces(arg1 statedb.VersionedDB) ([]string, error)

func (*NamespaceProvider) PossibleNamespacesArgsForCall

func (fake *NamespaceProvider) PossibleNamespacesArgsForCall(i int) statedb.VersionedDB

func (*NamespaceProvider) PossibleNamespacesCallCount

func (fake *NamespaceProvider) PossibleNamespacesCallCount() int

func (*NamespaceProvider) PossibleNamespacesCalls

func (fake *NamespaceProvider) PossibleNamespacesCalls(stub func(statedb.VersionedDB) ([]string, error))

func (*NamespaceProvider) PossibleNamespacesReturns

func (fake *NamespaceProvider) PossibleNamespacesReturns(result1 []string, result2 error)

func (*NamespaceProvider) PossibleNamespacesReturnsOnCall

func (fake *NamespaceProvider) PossibleNamespacesReturnsOnCall(i int, result1 []string, result2 error)

type ResultsIterator

type ResultsIterator struct {
	CloseStub func()

	NextStub func() (*statedb.VersionedKV, 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() (*statedb.VersionedKV, error)

func (*ResultsIterator) NextCallCount

func (fake *ResultsIterator) NextCallCount() int

func (*ResultsIterator) NextCalls

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

func (*ResultsIterator) NextReturns

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

func (*ResultsIterator) NextReturnsOnCall

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

type VersionedDB

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

	BytesKeySupportedStub func() bool

	CloseStub func()

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

	ExecuteQueryWithPaginationStub func(string, string, string, int32) (statedb.QueryResultsIterator, error)

	GetFullScanIteratorStub func(func(string) bool) (statedb.FullScanIterator, 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)

	GetStateRangeScanIteratorWithPaginationStub func(string, string, string, int32) (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

func (fake *VersionedDB) ApplyUpdates(arg1 *statedb.UpdateBatch, arg2 *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) ApplyUpdatesCalls

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

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) BytesKeySupportedCalls

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

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) CloseCalls

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

func (*VersionedDB) ExecuteQuery

func (fake *VersionedDB) ExecuteQuery(arg1 string, arg2 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) ExecuteQueryCalls

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

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) ExecuteQueryWithPagination

func (fake *VersionedDB) ExecuteQueryWithPagination(arg1 string, arg2 string, arg3 string, arg4 int32) (statedb.QueryResultsIterator, error)

func (*VersionedDB) ExecuteQueryWithPaginationArgsForCall

func (fake *VersionedDB) ExecuteQueryWithPaginationArgsForCall(i int) (string, string, string, int32)

func (*VersionedDB) ExecuteQueryWithPaginationCallCount

func (fake *VersionedDB) ExecuteQueryWithPaginationCallCount() int

func (*VersionedDB) ExecuteQueryWithPaginationCalls

func (fake *VersionedDB) ExecuteQueryWithPaginationCalls(stub func(string, string, string, int32) (statedb.QueryResultsIterator, error))

func (*VersionedDB) ExecuteQueryWithPaginationReturns

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

func (*VersionedDB) ExecuteQueryWithPaginationReturnsOnCall

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

func (*VersionedDB) GetFullScanIterator

func (fake *VersionedDB) GetFullScanIterator(arg1 func(string) bool) (statedb.FullScanIterator, error)

func (*VersionedDB) GetFullScanIteratorArgsForCall

func (fake *VersionedDB) GetFullScanIteratorArgsForCall(i int) func(string) bool

func (*VersionedDB) GetFullScanIteratorCallCount

func (fake *VersionedDB) GetFullScanIteratorCallCount() int

func (*VersionedDB) GetFullScanIteratorCalls

func (fake *VersionedDB) GetFullScanIteratorCalls(stub func(func(string) bool) (statedb.FullScanIterator, error))

func (*VersionedDB) GetFullScanIteratorReturns

func (fake *VersionedDB) GetFullScanIteratorReturns(result1 statedb.FullScanIterator, result2 error)

func (*VersionedDB) GetFullScanIteratorReturnsOnCall

func (fake *VersionedDB) GetFullScanIteratorReturnsOnCall(i int, result1 statedb.FullScanIterator, result2 error)

func (*VersionedDB) GetLatestSavePoint

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

func (*VersionedDB) GetLatestSavePointCallCount

func (fake *VersionedDB) GetLatestSavePointCallCount() int

func (*VersionedDB) GetLatestSavePointCalls

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

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(arg1 string, arg2 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) GetStateCalls

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

func (*VersionedDB) GetStateMultipleKeys

func (fake *VersionedDB) GetStateMultipleKeys(arg1 string, arg2 []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) GetStateMultipleKeysCalls

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

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(arg1 string, arg2 string, arg3 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) GetStateRangeScanIteratorCalls

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

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) GetStateRangeScanIteratorWithPagination

func (fake *VersionedDB) GetStateRangeScanIteratorWithPagination(arg1 string, arg2 string, arg3 string, arg4 int32) (statedb.QueryResultsIterator, error)

func (*VersionedDB) GetStateRangeScanIteratorWithPaginationArgsForCall

func (fake *VersionedDB) GetStateRangeScanIteratorWithPaginationArgsForCall(i int) (string, string, string, int32)

func (*VersionedDB) GetStateRangeScanIteratorWithPaginationCallCount

func (fake *VersionedDB) GetStateRangeScanIteratorWithPaginationCallCount() int

func (*VersionedDB) GetStateRangeScanIteratorWithPaginationCalls

func (fake *VersionedDB) GetStateRangeScanIteratorWithPaginationCalls(stub func(string, string, string, int32) (statedb.QueryResultsIterator, error))

func (*VersionedDB) GetStateRangeScanIteratorWithPaginationReturns

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

func (*VersionedDB) GetStateRangeScanIteratorWithPaginationReturnsOnCall

func (fake *VersionedDB) GetStateRangeScanIteratorWithPaginationReturnsOnCall(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(arg1 string, arg2 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) GetVersionCalls

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

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) OpenCalls

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

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(arg1 string, arg2 []byte) error

func (*VersionedDB) ValidateKeyValueArgsForCall

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

func (*VersionedDB) ValidateKeyValueCallCount

func (fake *VersionedDB) ValidateKeyValueCallCount() int

func (*VersionedDB) ValidateKeyValueCalls

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

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