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
Click to show internal directories.
Click to hide internal directories.