Documentation ¶
Index ¶
- func AssertDomain(t *testing.T, itr dbm.Iterator, start, end []byte)
- func AssertInvalid(t *testing.T, itr dbm.Iterator)
- func AssertItem(t *testing.T, itr dbm.Iterator, key, value []byte)
- func AssertKeyPanics(t *testing.T, itr dbm.Iterator)
- func AssertNext(t *testing.T, itr dbm.Iterator, expected bool)
- func AssertValue(t *testing.T, db dbm.DBReader, key, valueWanted []byte)
- func AssertValuePanics(t *testing.T, itr dbm.Iterator)
- func BenchmarkRandomReadsWrites(b *testing.B, db dbm.DBReadWriter)
- func BenchmarkRangeScans(b *testing.B, db dbm.DBReadWriter, dbSize int64)
- func BytesToInt64(buf []byte) int64
- func DoTestGetSetHasDelete(t *testing.T, load Loader)
- func DoTestIterators(t *testing.T, load Loader)
- func DoTestReloadDB(t *testing.T, load Loader)
- func DoTestRevert(t *testing.T, load Loader, reload bool)
- func DoTestTransactions(t *testing.T, load Loader, multipleWriters bool)
- func DoTestVersioning(t *testing.T, load Loader)
- func Int64ToBytes(i int64) []byte
- type Loader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkRandomReadsWrites ¶
func BenchmarkRandomReadsWrites(b *testing.B, db dbm.DBReadWriter)
func BenchmarkRangeScans ¶
func BenchmarkRangeScans(b *testing.B, db dbm.DBReadWriter, dbSize int64)
func BytesToInt64 ¶
func DoTestGetSetHasDelete ¶
func DoTestIterators ¶
func DoTestReloadDB ¶
Tests reloading a saved DB from disk.
func DoTestRevert ¶
Test that Revert works as intended, optionally closing and reloading the DB both before and after reverting
func DoTestVersioning ¶
func Int64ToBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.