MCPcopy
hub / github.com/pterm/pterm / TestRemoveColorFromString

Function TestRemoveColorFromString

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

Source from the content-addressed store, hash-verified

65}
66
67func TestRemoveColorFromString(t *testing.T) {
68 for _, randomString := range internal.RandomStrings {
69 testString := pterm.Cyan(randomString)
70 testza.AssertEqual(t, randomString, pterm.RemoveColorFromString(testString))
71 }
72}
73
74func TestColorPrinterPrintMethods(t *testing.T) {
75 p := pterm.Color(16)

Callers

nothing calls this directly

Calls 1

RemoveColorFromStringFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…