interrupttest

package
v8.172.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 15 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 interrupttest runs CLI signal regressions in isolated processes.

Index

Constants

This section is empty.

Variables

Signals exercises both ways a caller interrupts a wait.

Functions

func ReleaseSources

func ReleaseSources(t *testing.T, interrupt func(context.Context) error) *releasewait.Sources

ReleaseSources is a generated release with available artifacts. With an interrupt it retains a running tag workflow before the next read is stopped.

func Run

func Run(t *testing.T, code int, child func() error) map[string]any

Run calls child in a subprocess and checks its real exit and sole document. The child gets an explicit environment and injected sources, never a login.

func Send

func Send(ctx context.Context, sig os.Signal) error

Send interrupts this child during a dependency call, waiting until its command context observes the signal before the dependency returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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