Documentation ¶ Overview ¶ Package fuzz provides a way to add test cases to a testing.F instance from a zip file. Index ¶ func AddFromZip(f *testing.F, filename string, t InputType, short bool) func ReturnFromZip(tb testing.TB, filename string, t InputType, fn func([]byte)) type InputType Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AddFromZip ¶ func AddFromZip(f *testing.F, filename string, t InputType, short bool) AddFromZip will read the supplied zip and add all as corpus for f. Byte slices only. func ReturnFromZip ¶ func ReturnFromZip(tb testing.TB, filename string, t InputType, fn func([]byte)) ReturnFromZip will read the supplied zip and add all as corpus for f. Byte slices only. Types ¶ type InputType ¶ type InputType uint8 const ( // TypeRaw indicates that files are raw bytes. TypeRaw InputType = iota // TypeGoFuzz indicates files are from Go Fuzzer. TypeGoFuzz // TypeOSSFuzz indicates that files are from OSS fuzzer with size before data. TypeOSSFuzz ) Source Files ¶ View all Source files fuzz.go Click to show internal directories. Click to hide internal directories.