Documentation
¶
Index ¶
- func BadgerDB(t *testing.T) (kvstore.KVStore, error)
- func PebbleDB(t *testing.T) (kvstore.KVStore, error)
- func Rand32ByteArray() [32]byte
- func Rand49ByteArray() [49]byte
- func Rand64ByteArray() [64]byte
- func RandBytes(length int) []byte
- func RocksDB(t *testing.T) (kvstore.KVStore, error)
- func SortedRand32BytArray(count int) [][32]byte
- func TempDir(t *testing.T) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadgerDB ¶
BadgerDB creates a temporary BadgerKVStore that automatically gets cleaned up when the test finishes.
func PebbleDB ¶
PebbleDB creates a temporary PebbleKVStore that automatically gets cleaned up when the test finishes.
func Rand32ByteArray ¶
func Rand32ByteArray() [32]byte
Rand32ByteArray returns an array with 32 random bytes.
func Rand49ByteArray ¶
func Rand49ByteArray() [49]byte
Rand49ByteArray returns an array with 49 random bytes.
func Rand64ByteArray ¶
func Rand64ByteArray() [64]byte
Rand64ByteArray returns an array with 64 random bytes.
func RocksDB ¶
RocksDB creates a temporary RocksDBKVStore that automatically gets cleaned up when the test finishes.
func SortedRand32BytArray ¶
SortedRand32BytArray returns a count length slice of sorted 32 byte arrays.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.