(t *testing.T)
| 243 | } |
| 244 | |
| 245 | func 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 | |
| 257 | func TestRGB_PrintOnError(t *testing.T) { |
| 258 | RGBs := []pterm.RGB{{0, 0, 0, false}, {127, 127, 127, false}, {255, 255, 255, false}} |
nothing calls this directly
no test coverage detected
searching dependent graphs…