testutil

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxFuzzInputSize = 1 << 20

MaxFuzzInputSize is the shared upper bound for parser fuzz payloads.

Variables

This section is empty.

Functions

func BuildGoBinary

func BuildGoBinary(t testing.TB, outputPath, source string) error

BuildGoBinary writes source to a temporary file and builds it into outputPath.

func BuildGoBinaryFromSource added in v0.18.1

func BuildGoBinaryFromSource(outputPath, source string) error

BuildGoBinaryFromSource is BuildGoBinary for callers without a testing handle — package TestMain functions that build shared fake binaries once. It manages its own temporary source directory.

func RequireFuzzGraphValid added in v0.20.0

func RequireFuzzGraphValid(t *testing.T, graph *sdk.Graph)

RequireFuzzGraphValid verifies the minimum invariants of a successfully parsed dependency graph.

Types

This section is empty.

Jump to

Keyboard shortcuts

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