Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertExactWidth ¶
AssertExactWidth fails if the widest line in output doesn't equal expected.
func AssertMaxWidth ¶
AssertMaxWidth fails if any line in output exceeds maxWidth.
func AssertNoRawEscapes ¶
AssertNoRawEscapes fails if any line contains a broken/visible escape sequence. A raw escape looks like "38;2;110;231;183m" — ANSI parameters without the leading ESC[.
func DrainCmds ¶ added in v1.18.0
DrainCmds executes a tea.Cmd and feeds resulting messages back through the update function. Handles tea.BatchMsg by expanding and executing each sub-command.
Each cmd is executed with a timeout. Cmds that block (e.g. channel reads waiting on a stream) are skipped. This makes DrainCmds safe to use with models that have in-flight async work.
Stops after maxSteps to prevent infinite loops in tests.
Types ¶
This section is empty.