MCPcopy
hub / github.com/pterm/pterm / TestRGB_Sprintln

Function TestRGB_Sprintln

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

Source from the content-addressed store, hash-verified

243}
244
245func TestRGB_Sprintln(t *testing.T) {
246 RGBs := []pterm.RGB{{0, 0, 0, false}, {127, 127, 127, false}, {255, 255, 255, false}}
247
248 for _, rgb := range RGBs {
249 t.Run(pterm.Sprintf("%v %v %v", rgb.R, rgb.G, rgb.B), func(t *testing.T) {
250 testSprintlnContains(t, func(a any) string {
251 return rgb.Sprintln(a)
252 })
253 })
254 }
255}
256
257func TestRGB_PrintOnError(t *testing.T) {
258 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
testSprintlnContainsFunction · 0.85
SprintlnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…