testpty

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 7 Imported by: 0

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

func MaybeReexecOwnedPTY() (handled bool, code int, err error)

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.

Jump to

Keyboard shortcuts

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