MCPcopy
hub / github.com/pterm/pterm / TestRGB_Println

Function TestRGB_Println

rgb_test.go:196–207  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

194}
195
196func TestRGB_Println(t *testing.T) {
197 RGBs := []pterm.RGB{{0, 0, 0, false}, {127, 127, 127, false}, {255, 255, 255, false}}
198
199 for _, rgb := range RGBs {
200 t.Run(pterm.Sprintf("%v %v %v", rgb.R, rgb.G, rgb.B), func(t *testing.T) {
201 testPrintlnContains(t, func(w io.Writer, a any) {
202 p := rgb.Println(a)
203 testza.AssertNotNil(t, p)
204 })
205 })
206 }
207}
208
209func TestRGB_Sprint(t *testing.T) {
210 RGBs := []pterm.RGB{{0, 0, 0, false}, {127, 127, 127, false}, {255, 255, 255, false}}

Callers

nothing calls this directly

Calls 3

SprintfFunction · 0.92
testPrintlnContainsFunction · 0.85
PrintlnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…