Documentation
¶
Overview ¶
Package testutils holds helpers shared by the tests of several ux packages.
Test-only, and imported from _test.go files alone. StripANSI is the one that matters: the panels are tested with a colour profile forced on, so nearly every assertion needs the text without the styling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyLoader ¶ added in v0.36.4
ApplyLoader writes the loader this run was asked for onto opts, and returns it for chaining.
The TUI scans through the same library as everything else, so its tests answer to the same run-wide setting; see internal/testloader for what selects it and why.
A test that pins a loader must not route through here - there is no telling a field left at its zero value from one set on purpose - which is why this refuses one rather than writing over it.
Types ¶
This section is empty.