(t *testing.T)
| 168 | } |
| 169 | |
| 170 | func TestRGB_Printf(t *testing.T) { |
| 171 | RGBs := []pterm.RGB{{0, 0, 0, false}, {127, 127, 127, false}, {255, 255, 255, false}} |
| 172 | |
| 173 | for _, rgb := range RGBs { |
| 174 | t.Run(pterm.Sprintf("%v %v %v", rgb.R, rgb.G, rgb.B), func(t *testing.T) { |
| 175 | testPrintfContains(t, func(w io.Writer, format string, a any) { |
| 176 | p := rgb.Printf(format, a) |
| 177 | testza.AssertNotNil(t, p) |
| 178 | }) |
| 179 | }) |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | func TestRGB_Printfln(t *testing.T) { |
| 184 | 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…