dbtest

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkRandomReadsWrites

func BenchmarkRandomReadsWrites(b *testing.B, db tmdb.DB)

func BenchmarkRangeScans

func BenchmarkRangeScans(b *testing.B, db tmdb.DB, dbSize int64)

func Bytes2Int64

func Bytes2Int64(buf []byte) int64

func CleanupDBDir

func CleanupDBDir(dir, name string)

func Domain

func Domain(t *testing.T, itr tmdb.Iterator, start, end []byte)

func Int642Bytes

func Int642Bytes(i int64) []byte

func Invalid

func Invalid(t *testing.T, itr tmdb.Iterator)

func Item

func Item(t *testing.T, itr tmdb.Iterator, key []byte, value []byte)

func KeyPanics

func KeyPanics(t *testing.T, itr tmdb.Iterator)

func Next

func Next(t *testing.T, itr tmdb.Iterator, expected bool)

func NextPanics

func NextPanics(t *testing.T, itr tmdb.Iterator)

func RandStr

func RandStr(length int) string

RandStr constructs a random alphanumeric string of given length.

func Valid

func Valid(t *testing.T, itr tmdb.Iterator, expected bool)

func Value

func Value(t *testing.T, db tmdb.DB, key []byte, valueWanted []byte)

func ValuePanics

func ValuePanics(t *testing.T, itr tmdb.Iterator)

Types

This section is empty.

Jump to

Keyboard shortcuts

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