(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestAreaPrinter_NilPrint(t *testing.T) { |
| 12 | originalStdout := os.Stdout |
| 13 | os.Stdout = os.NewFile(0, os.DevNull) // Set os.Stdout to DevNull to hide output from cursor.Area |
| 14 | |
| 15 | p := pterm.AreaPrinter{} |
| 16 | p.Update("asd") |
| 17 | |
| 18 | os.Stdout = originalStdout // Restore original os.Stdout |
| 19 | } |
| 20 | |
| 21 | func TestAreaPrinter_GenericStart(t *testing.T) { |
| 22 | originalStdout := os.Stdout |
nothing calls this directly
no test coverage detected
searching dependent graphs…