commontests

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestApplyUpdatesWithNilHeight added in v1.4.0

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

func TestBasicRW

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

TestBasicRW tests basic read-write

func TestBatchWithIndividualRetry added in v1.1.0

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

TestBatchWithIndividualRetry tests a single failure in a batch

func TestDeletes

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

TestDeletes tests deletes

func TestGetStateMultipleKeys

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

TestGetStateMultipleKeys tests read for given multiple keys

func TestGetVersion added in v1.1.0

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

TestGetVersion tests retrieving the version by namespace and key

func TestIterator

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

TestIterator tests the iterator

func TestItrWithoutClose added in v1.3.0

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

TestItrWithoutClose verifies an iterator contains expected keys

func TestMultiDBBasicRW

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

TestMultiDBBasicRW tests basic read-write on multiple dbs

func TestPaginatedRangeQuery added in v1.3.0

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

TestPaginatedRangeQuery tests range queries with pagination

func TestQuery

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

TestQuery tests queries

func TestSmallBatchSize added in v1.1.0

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

TestSmallBatchSize tests multiple update batches

func TestValueAndMetadataWrites added in v1.3.0

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

TestValueAndMetadataWrites tests statedb for value and metadata read-writes

Types

This section is empty.

Jump to

Keyboard shortcuts

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