fuzz

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Overview

Package fuzz provides a way to add test cases to a testing.F instance from a zip file.

Index

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 added in v1.17.6

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 added in v1.16.1

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
)

Jump to

Keyboard shortcuts

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