package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev

# Functions

CreateTestData creates test data for the given namespace and number of keys.
TestApplyUpdatesWithNilHeight is a common test that is invoked by leveldb and couchdb for verifying that the statedb commits the batch with a nil height (used for committing the missing private data for the old blocks).
TestBasicRW tests basic read-write.
TestBatchWithIndividualRetry tests a single failure in a batch.
TestDataExportImport is a common test that is invoked by leveldb and couchdb for testing the export and import of statedb for snapshotting functionality.
TestDeletes tests deletes.
TestDrop tests dropping channel-specific ledger data.
TestGetStateMultipleKeys tests read for given multiple keys.
TestGetVersion tests retrieving the version by namespace and key.
TestIterator tests the iterator.
TestItrWithoutClose verifies an iterator contains expected keys.
TestMultiDBBasicRW tests basic read-write on multiple dbs.
TestPaginatedRangeQuery tests range queries with pagination.
TestQuery tests queries.
TestRangeQuerySpecialCharacters tests range queries for keys with special characters and/or non-English characters.
TestSmallBatchSize tests multiple update batches.
TestValueAndMetadataWrites tests statedb for value and metadata read-writes.

# Type aliases

CheckDBsAfterDropFunc checks if the channel-specific dbs have been dropped.