elements

package
v0.0.0-...-52e88f8 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlainFuncs fuzzable = iota
	PtrReceivers
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FuzzySet

type FuzzySet struct {
	// PackageName is the name used in selector statements into the package.
	PackageName string
	// contains filtered or unexported fields
}

FuzzySet holds the set of functions for which fuzz tests are generated.

func NewFuzzySet

func NewFuzzySet(packageName string) *FuzzySet

NewFuzzySet creates a FuzzySet where packageName is the name of the package and completePackagePath is the import path other packages would use.

func (*FuzzySet) Inspect

func (fs *FuzzySet) Inspect(which fuzzable, do func(*ast.FuncDecl))

Inspect calls do on each function declaration of the requested type.

func (*FuzzySet) Visit

func (fs *FuzzySet) Visit(n ast.Node) ast.Visitor

Visit is used to add decls to the FuzzySet. It satisfies the ast.Visitor interface.

Jump to

Keyboard shortcuts

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