MCPcopy
hub / github.com/pterm/pterm / TestRGB_Sprintf

Function TestRGB_Sprintf

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

Source from the content-addressed store, hash-verified

219}
220
221func TestRGB_Sprintf(t *testing.T) {
222 RGBs := []pterm.RGB{{0, 0, 0, false}, {127, 127, 127, false}, {255, 255, 255, false}}
223
224 for _, rgb := range RGBs {
225 t.Run("", func(t *testing.T) {
226 testSprintfContains(t, func(format string, a any) string {
227 return rgb.Sprintf(format, a)
228 })
229 })
230 }
231}
232
233func TestRGB_Sprintfln(t *testing.T) {
234 RGBs := []pterm.RGB{{0, 0, 0, false}, {127, 127, 127, false}, {255, 255, 255, false}}

Callers

nothing calls this directly

Calls 2

testSprintfContainsFunction · 0.85
SprintfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…