Documentation ¶
Overview ¶
Package wkt provides Fuzz functions for protobuf well known types (google.protobuf.*)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuzzWKT = [...]interface{}{FuzzAny, FuzzDuration, FuzzStruct, FuzzTimestamp}
Functions ¶
func FuzzAny ¶
FuzzAny can be used to Fuzz google.protobuf.Any messages. It fills a fuzzed google.protobuf.Struct message.
func FuzzDuration ¶
func FuzzDuration(msg *durationpb.Duration, c fuzz.Continue)
FuzzDuration can be used to Fuzz google.protobuf.Duration messages. It's range is [0, 1 year)
func FuzzStruct ¶
FuzzStruct can be used to Fuzz google.protobuf.Struct messages. # of fields will be in [0, 64). Each field will be one of float, bool, or string
func FuzzTimestamp ¶
func FuzzTimestamp(msg *timestamppb.Timestamp, c fuzz.Continue)
FuzzTimestamp can be used to Fuzz google.protobuf.Timestamp messages. It's range is same as default time.Time fuzzer of gofuzz
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.