interrupttest

package
v8.164.0-rc.57 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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