wkt

package module
v0.0.0-...-8e09a14 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 6 Imported by: 0

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

func FuzzAny(msg *anypb.Any, c fuzz.Continue)

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

func FuzzStruct(msg *structpb.Struct, c fuzz.Continue)

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.

Jump to

Keyboard shortcuts

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