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

package commontests

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

Index

Package Files

test_common.go

func TestApplyUpdatesWithNilHeight Uses

func TestApplyUpdatesWithNilHeight(t *testing.T, dbProvider statedb.VersionedDBProvider)

func TestBasicRW Uses

func TestBasicRW(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestBasicRW tests basic read-write

func TestBatchWithIndividualRetry Uses

func TestBatchWithIndividualRetry(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestBatchWithIndividualRetry tests a single failure in a batch

func TestDeletes Uses

func TestDeletes(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestDeletes tests deletes

func TestGetStateMultipleKeys Uses

func TestGetStateMultipleKeys(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestGetStateMultipleKeys tests read for given multiple keys

func TestGetVersion Uses

func TestGetVersion(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestGetVersion tests retrieving the version by namespace and key

func TestIterator Uses

func TestIterator(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestIterator tests the iterator

func TestItrWithoutClose Uses

func TestItrWithoutClose(t *testing.T, itr statedb.ResultsIterator, expectedKeys []string)

TestItrWithoutClose verifies an iterator contains expected keys

func TestMultiDBBasicRW Uses

func TestMultiDBBasicRW(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestMultiDBBasicRW tests basic read-write on multiple dbs

func TestPaginatedRangeQuery Uses

func TestPaginatedRangeQuery(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestPaginatedRangeQuery tests range queries with pagination

func TestQuery Uses

func TestQuery(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestQuery tests queries

func TestSmallBatchSize Uses

func TestSmallBatchSize(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestSmallBatchSize tests multiple update batches

func TestValueAndMetadataWrites Uses

func TestValueAndMetadataWrites(t *testing.T, dbProvider statedb.VersionedDBProvider)

TestValueAndMetadataWrites tests statedb for value and metadata read-writes

Package commontests imports 6 packages (graph). Updated 2019-01-07. Refresh now. Tools for package owners.