Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultSlowThreshold = 10 * time.Second
DefaultSlowThreshold is the fallback threshold used when none is specified.
View Source
const MaxOutputLines = 6
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// Terminal state
TerminalWidth int
TerminalHeight int
SlowThreshold time.Duration
// Replay state
ReplayRate float64
// OnInterrupt, if set, is invoked when the user presses ctrl+c (or
// otherwise interrupts the TUI). It runs before tea.Quit is returned so
// callers can forward the interrupt (e.g. to a child go test process)
// while bubbletea still has control of the terminal and will restore it
// cleanly. Must be safe to call from a bubbletea goroutine and may be
// invoked more than once across a program's lifetime.
OnInterrupt func()
NonTestOutput []string
// contains filtered or unexported fields
}
Model represents the TUI state for the enhanced hierarchical test output display.
The Model implements the Bubbletea Model interface. It is a passive view that renders the state from the collector.
Click to show internal directories.
Click to hide internal directories.