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 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 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