testutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package testutil locates the repository root and prepares the installed tool used by process-boundary tests.

Index

Constants

View Source
const RaceEnabled = false

Variables

This section is empty.

Functions

func CheckRaceReports

func CheckRaceReports(dir string) error

CheckRaceReports is independent of business exit status and captured stderr.

func PrepareBinary

func PrepareBinary() (func(int) int, error)

PrepareBinary verifies the shared CLI and guards subprocess race reports. Builds belong to the layer runner, never individual test packages.

func PrepareRaceGuard

func PrepareRaceGuard() (func(int) int, error)

PrepareRaceGuard catches races in controlled helpers even when a case expects failure.

func RaceShellExport

func RaceShellExport() string

RaceShellExport preserves guard configuration across isolated launchers.

func RepositoryRoot

func RepositoryRoot() (string, error)

func ValidateBinary

func ValidateBinary(binary string, wantRace bool) error

ValidateBinary checks the actual installed artifact, not its filename.

Types

This section is empty.

Directories

Path Synopsis
Package builtintest reads builtin recordings for installed CLI checks.
Package builtintest reads builtin recordings for installed CLI checks.

Jump to

Keyboard shortcuts

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