Documentation
¶
Overview ¶
Package testpty provides test-only helpers for isolating package test binaries inside owned PTYs so terminal state changes cannot leak to the caller's controlling terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeReexecOwnedPTY ¶
MaybeReexecOwnedPTY re-execs the current test binary under an owned PTY so package tests never inherit the caller's controlling terminal for resize/raw operations. It returns handled=true in the parent process, along with the child exit code to propagate via os.Exit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.