MCPcopy
hub / github.com/pterm/pterm / TestDisableColor

Function TestDisableColor

color_test.go:185–189  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func TestDisableColor(t *testing.T) {
186 pterm.DisableColor()
187 testza.AssertFalse(t, color.Enable)
188 testza.AssertFalse(t, pterm.PrintColor)
189}
190
191func TestDisabledColorDoesPrintPlainString(t *testing.T) {
192 pterm.DisableColor()

Callers

nothing calls this directly

Calls 1

DisableColorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…