fuzz

package
v0.1.3-fix Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fuzzer

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

Fuzzer knows how to fill any object with random fields.

func New

func New() *Fuzzer

New returns a new Fuzzer.

func NewWithSeed

func NewWithSeed(seed int64) *Fuzzer

NewWithSeed returns a new Fuzzer with a specific seed.

func (*Fuzzer) Fuzz

func (f *Fuzzer) Fuzz(obj interface{}) bool

Fuzz recursively fills all of obj's fields with something random

func (*Fuzzer) SetFailureRatio

func (f *Fuzzer) SetFailureRatio(failRatio float64)

SetFailureRatio sets the failure ratio for the fuzzer

Jump to

Keyboard shortcuts

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