fuzzer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFuzzRounds = 10000
View Source
const DefaultNilChance = 0.05

Variables

This section is empty.

Functions

func FuzzGrpcEndpoint

func FuzzGrpcEndpoint(t *testing.T, ctx context.Context, client interface{}, methodName string, req interface{}, opts ...FuzzOptions)

Runs a fuzz test on all fields of the specified GRPC endpoint client is the client for the microservice (e.g. echoClient) req is a sample, valid request (the fuzzer will mutate the values in this request) opts are configurations for the fuzzing, if not included the default settings will be used

func FuzzThisField

func FuzzThisField(t *testing.T, ctx context.Context, client interface{}, methodName string, req interface{}, fieldName string, opts ...FuzzOptions)

Runs the specified field of the endpoint client is the client for the microservice (e.g. echoClient) req is a sample, valid request (the fuzzer will mutate the values in this request) fieldName is the field to fuzz opts are configurations for the fuzzing, if not included the default settings will be used

Types

type FuzzOptions

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

Represents configurable options for fuzzing

Jump to

Keyboard shortcuts

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