testPrintflnContains can be used to test Printfln methods.
(t *testing.T, logic func(w io.Writer, format string, a any))
| 71 | |
| 72 | // testPrintflnContains can be used to test Printfln methods. |
| 73 | func testPrintflnContains(t *testing.T, logic func(w io.Writer, format string, a any)) { |
| 74 | for _, printable := range printables { |
| 75 | t.Run(fmt.Sprint(printable), func(t *testing.T) { |
| 76 | testPrintfContains(t, logic) |
| 77 | }) |
| 78 | pterm.DisableStyling() |
| 79 | t.Run(fmt.Sprint(printable), func(t *testing.T) { |
| 80 | testPrintfContains(t, logic) |
| 81 | }) |
| 82 | pterm.EnableStyling() |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | // testPrintlnContains can be used to test Println methods. |
| 87 | func testPrintlnContains(t *testing.T, logic func(w io.Writer, a any)) { |
no test coverage detected
searching dependent graphs…