fuzz

package
v0.0.0-...-8e4d6a8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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

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
)

Jump to

Keyboard shortcuts

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