testEmpty checks that a function does not return a string.
(t *testing.T, logic func(a any) string)
| 185 | |
| 186 | // testEmpty checks that a function does not return a string. |
| 187 | func testEmpty(t *testing.T, logic func(a any) string) { |
| 188 | for _, printable := range printables { |
| 189 | testza.AssertZero(t, logic(printable)) |
| 190 | pterm.DisableStyling() |
| 191 | testza.AssertZero(t, logic(printable)) |
| 192 | pterm.EnableStyling() |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | // testDoesNotOutput can be used, to test that something does not output anything to stdout. |
| 197 | func testDoesNotOutput(t *testing.T, logic func(w io.Writer)) { |
no test coverage detected
searching dependent graphs…