Documentation
¶
Index ¶
- func BenchWithStorages(t *testing.B, fn func(*testing.B, storage.Reader, WithWriter))
- func RunFuncsWithNewBadgerDBHandle(t *testing.T, fs ...func(*testing.T, storage.DB))
- func RunFuncsWithNewDBHandle(t *testing.T, fn ...func(*testing.T, storage.DB))
- func RunFuncsWithNewPebbleDBHandle(t *testing.T, fs ...func(*testing.T, storage.DB))
- func RunWithBadger(t *testing.T, fn func(*testing.T, storage.Reader, WithWriter))
- func RunWithDB(t *testing.T, fn func(*testing.T, storage.DB))
- func RunWithPebble(t *testing.T, fn func(*testing.T, storage.Reader, WithWriter))
- func RunWithPebbleDB(t *testing.T, opts *pebble.Options, ...)
- func RunWithStorages(t *testing.T, fn func(*testing.T, storage.Reader, WithWriter))
- type WithWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchWithStorages ¶
func RunFuncsWithNewBadgerDBHandle ¶ added in v0.42.1
RunFuncsWithNewBadgerDBHandle runs provided functions with new BadgerDB handles of the same underlying database. Each provided function will receive a new (different) DB handle. This can be used to test database persistence.
func RunFuncsWithNewDBHandle ¶ added in v0.42.1
RunFuncsWithNewPebbleDBHandle runs provided functions with new database handles of the same underlying database. Each provided function will receive a new (different) DB handle. This can be used to test database persistence.
func RunFuncsWithNewPebbleDBHandle ¶ added in v0.42.1
RunFuncsWithNewPebbleDBHandle runs provided functions with new Pebble handles of the same underlying database. Each provided function will receive a new (different) DB handle. This can be used to test database persistence.