Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + type ResultsIterator struct + CloseStub func() + NextStub func() (statedb.QueryResult, error) + func (fake *ResultsIterator) Close() + func (fake *ResultsIterator) CloseCallCount() int + func (fake *ResultsIterator) Invocations() map[string][][]interface{} + func (fake *ResultsIterator) Next() (statedb.QueryResult, error) + func (fake *ResultsIterator) NextCallCount() int + func (fake *ResultsIterator) NextReturns(result1 statedb.QueryResult, result2 error) + func (fake *ResultsIterator) NextReturnsOnCall(i int, result1 statedb.QueryResult, result2 error) + type VersionedDB struct + ApplyUpdatesStub func(batch *statedb.UpdateBatch, height *version.Height) error + BytesKeySupportedStub func() bool + CloseStub func() + ExecuteQueryStub func(namespace, query string) (statedb.ResultsIterator, error) + ExecuteQueryWithMetadataStub func(namespace, query string, metadata map[string]interface{}) (statedb.QueryResultsIterator, error) + GetLatestSavePointStub func() (*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, ...) (statedb.QueryResultsIterator, error) + GetStateStub func(namespace string, key string) (*statedb.VersionedValue, error) + GetVersionStub func(namespace string, key string) (*version.Height, error) + OpenStub func() error + ValidateKeyValueStub func(key string, value []byte) error + func (fake *VersionedDB) ApplyUpdates(batch *statedb.UpdateBatch, height *version.Height) error + func (fake *VersionedDB) ApplyUpdatesArgsForCall(i int) (*statedb.UpdateBatch, *version.Height) + func (fake *VersionedDB) ApplyUpdatesCallCount() int + func (fake *VersionedDB) ApplyUpdatesReturns(result1 error) + func (fake *VersionedDB) ApplyUpdatesReturnsOnCall(i int, result1 error) + func (fake *VersionedDB) BytesKeySupported() bool + func (fake *VersionedDB) BytesKeySupportedCallCount() int + func (fake *VersionedDB) BytesKeySupportedReturns(result1 bool) + func (fake *VersionedDB) BytesKeySupportedReturnsOnCall(i int, result1 bool) + func (fake *VersionedDB) Close() + func (fake *VersionedDB) CloseCallCount() int + func (fake *VersionedDB) ExecuteQuery(namespace string, query string) (statedb.ResultsIterator, error) + func (fake *VersionedDB) ExecuteQueryArgsForCall(i int) (string, string) + func (fake *VersionedDB) ExecuteQueryCallCount() int + func (fake *VersionedDB) ExecuteQueryReturns(result1 statedb.ResultsIterator, result2 error) + func (fake *VersionedDB) ExecuteQueryReturnsOnCall(i int, result1 statedb.ResultsIterator, result2 error) + func (fake *VersionedDB) ExecuteQueryWithMetadata(namespace string, query string, metadata map[string]interface{}) (statedb.QueryResultsIterator, error) + func (fake *VersionedDB) ExecuteQueryWithMetadataArgsForCall(i int) (string, string, map[string]interface{}) + func (fake *VersionedDB) ExecuteQueryWithMetadataCallCount() int + func (fake *VersionedDB) ExecuteQueryWithMetadataReturns(result1 statedb.QueryResultsIterator, result2 error) + func (fake *VersionedDB) ExecuteQueryWithMetadataReturnsOnCall(i int, result1 statedb.QueryResultsIterator, result2 error) + func (fake *VersionedDB) GetLatestSavePoint() (*version.Height, error) + func (fake *VersionedDB) GetLatestSavePointCallCount() int + func (fake *VersionedDB) GetLatestSavePointReturns(result1 *version.Height, result2 error) + func (fake *VersionedDB) GetLatestSavePointReturnsOnCall(i int, result1 *version.Height, result2 error) + func (fake *VersionedDB) GetState(namespace string, key string) (*statedb.VersionedValue, error) + func (fake *VersionedDB) GetStateArgsForCall(i int) (string, string) + func (fake *VersionedDB) GetStateCallCount() int + func (fake *VersionedDB) GetStateMultipleKeys(namespace string, keys []string) ([]*statedb.VersionedValue, error) + func (fake *VersionedDB) GetStateMultipleKeysArgsForCall(i int) (string, []string) + func (fake *VersionedDB) GetStateMultipleKeysCallCount() int + func (fake *VersionedDB) GetStateMultipleKeysReturns(result1 []*statedb.VersionedValue, result2 error) + func (fake *VersionedDB) GetStateMultipleKeysReturnsOnCall(i int, result1 []*statedb.VersionedValue, result2 error) + func (fake *VersionedDB) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (statedb.ResultsIterator, error) + func (fake *VersionedDB) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string) + func (fake *VersionedDB) GetStateRangeScanIteratorCallCount() int + func (fake *VersionedDB) GetStateRangeScanIteratorReturns(result1 statedb.ResultsIterator, result2 error) + func (fake *VersionedDB) GetStateRangeScanIteratorReturnsOnCall(i int, result1 statedb.ResultsIterator, result2 error) + func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadata(namespace string, startKey string, endKey string, ...) (statedb.QueryResultsIterator, error) + func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataArgsForCall(i int) (string, string, string, map[string]interface{}) + func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataCallCount() int + func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataReturns(result1 statedb.QueryResultsIterator, result2 error) + func (fake *VersionedDB) GetStateRangeScanIteratorWithMetadataReturnsOnCall(i int, result1 statedb.QueryResultsIterator, result2 error) + func (fake *VersionedDB) GetStateReturns(result1 *statedb.VersionedValue, result2 error) + func (fake *VersionedDB) GetStateReturnsOnCall(i int, result1 *statedb.VersionedValue, result2 error) + func (fake *VersionedDB) GetVersion(namespace string, key string) (*version.Height, error) + func (fake *VersionedDB) GetVersionArgsForCall(i int) (string, string) + func (fake *VersionedDB) GetVersionCallCount() int + func (fake *VersionedDB) GetVersionReturns(result1 *version.Height, result2 error) + func (fake *VersionedDB) GetVersionReturnsOnCall(i int, result1 *version.Height, result2 error) + func (fake *VersionedDB) Invocations() map[string][][]interface{} + func (fake *VersionedDB) Open() error + func (fake *VersionedDB) OpenCallCount() int + func (fake *VersionedDB) OpenReturns(result1 error) + func (fake *VersionedDB) OpenReturnsOnCall(i int, result1 error) + func (fake *VersionedDB) ValidateKeyValue(key string, value []byte) error + func (fake *VersionedDB) ValidateKeyValueArgsForCall(i int) (string, []byte) + func (fake *VersionedDB) ValidateKeyValueCallCount() int + func (fake *VersionedDB) ValidateKeyValueReturns(result1 error) + func (fake *VersionedDB) ValidateKeyValueReturnsOnCall(i int, result1 error)