MCPcopy
hub / github.com/pterm/pterm / TestDisabledColorDoesPrintPlainString

Function TestDisabledColorDoesPrintPlainString

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

Source from the content-addressed store, hash-verified

189}
190
191func TestDisabledColorDoesPrintPlainString(t *testing.T) {
192 pterm.DisableColor()
193 testza.AssertEqual(t, "Hello, World!", pterm.FgRed.Sprint("Hello, World!"))
194}

Callers

nothing calls this directly

Calls 2

DisableColorFunction · 0.92
SprintMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…