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 RandByte() byte
 - func RandBytes(length int) []byte
 - func RandFloat64(max float64) float64
 - func RandString(length int) string
 - func RandUint16(max uint16) uint16
 - func RandUint32(max uint32) uint32
 - func RandUint64(max uint64) uint64
 - func RandUint8(max uint8) uint8
 - func RandomFloat64() float64
 - func RandomInt31n(n int32) int32
 - func RandomInt63n(n int64) int64
 - func RandomIntn(n int) int
 - func RandomRead(p []byte) (n int, err error)
 - 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 RandString ¶
func RandomFloat64 ¶
func RandomFloat64() float64
func RandomInt31n ¶
func RandomInt63n ¶
func RandomIntn ¶
func RandomRead ¶
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.