kvtest

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package kvtest contains key/value related functions used for testing (otherwise of general nature)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSize

func ByteSize(s kv.KVStoreReader) int

func DumpToFile

func DumpToFile(r kv.KVStoreReader, fname string) (int, error)

func NewRandStreamIterator

func NewRandStreamIterator(p ...RandStreamParams) *randStreamIterator

func UnDumpFromFile

func UnDumpFromFile(w kv.KVWriter, fname string) (int, error)

Types

type RandStreamParams

type RandStreamParams struct {
	Seed       int64
	NumKVPairs int // 0 means infinite
	MaxKey     int // max length of key
	MaxValue   int // max length of value
}

Jump to

Keyboard shortcuts

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