fuzz

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllOnes = []byte{255, 255, 255, 255, 255, 255, 255, 255}
View Source
var AllZeros = []byte{0, 0, 0, 0, 0, 0, 0, 0}
View Source
var DefaultConfig = FuzzConfig{
	HeightStripe: 100,
	DelCount:     100,
	InitCount:    200,
	QueryCount:   300,
	IterCount:    100,
	IterDistance: 20,
	ReloadEveryN: 100,
}

Functions

func FuzzDelete

func FuzzDelete(trMem *it.NVTreeMem, refTree *NVTreeRef, cfg FuzzConfig, rs randsrc.RandSrc, changeMap map[string]int64)

func FuzzInit

func FuzzInit(rocksdb *it.RocksDB, trMem *it.NVTreeMem, refTree *NVTreeRef, cfg FuzzConfig, rs randsrc.RandSrc, h uint64, changeMap map[string]int64)

func FuzzIter

func FuzzIter(trMem *it.NVTreeMem, refTree *NVTreeRef, cfg FuzzConfig, rs randsrc.RandSrc)

func FuzzQuery

func FuzzQuery(trMem *it.NVTreeMem, refTree *NVTreeRef, cfg FuzzConfig, rs randsrc.RandSrc, h uint64)

func RunFuzz

func RunFuzz(roundCount int, cfg FuzzConfig, randFilename string)

Types

type FuzzConfig

type FuzzConfig struct {
	HeightStripe int
	InitCount    int
	QueryCount   int
	IterCount    int
	IterDistance int
	DelCount     int
	ReloadEveryN int
}

type NVTreeRef

type NVTreeRef struct {
	// contains filtered or unexported fields
}

func (*NVTreeRef) BeginWrite

func (tree *NVTreeRef) BeginWrite(currHeight int64)

func (*NVTreeRef) Close

func (tree *NVTreeRef) Close()

func (*NVTreeRef) Delete

func (tree *NVTreeRef) Delete(k []byte)

func (*NVTreeRef) EndWrite

func (tree *NVTreeRef) EndWrite()

func (*NVTreeRef) Get

func (tree *NVTreeRef) Get(k []byte) (int64, bool)

func (*NVTreeRef) GetAtHeight

func (tree *NVTreeRef) GetAtHeight(k []byte, height uint64) (position int64, ok bool)

func (*NVTreeRef) Init

func (tree *NVTreeRef) Init(dirname string) (err error)

func (*NVTreeRef) Iterator

func (tree *NVTreeRef) Iterator(start, end []byte) types.Iterator

func (*NVTreeRef) ReverseIterator

func (tree *NVTreeRef) ReverseIterator(start, end []byte) types.Iterator

func (*NVTreeRef) Set

func (tree *NVTreeRef) Set(k []byte, v int64)

Jump to

Keyboard shortcuts

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