(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestAreaPrinter_GenericStartRawOutput(t *testing.T) { |
| 32 | originalStdout := os.Stdout |
| 33 | os.Stdout = os.NewFile(0, os.DevNull) // Set os.Stdout to DevNull to hide output from cursor.Area |
| 34 | |
| 35 | pterm.DisableStyling() |
| 36 | p := pterm.DefaultArea |
| 37 | p.GenericStart() |
| 38 | pterm.EnableStyling() |
| 39 | |
| 40 | os.Stdout = originalStdout // Restore original os.Stdout |
| 41 | } |
| 42 | |
| 43 | func TestAreaPrinter_GenericStop(t *testing.T) { |
| 44 | originalStdout := os.Stdout |
nothing calls this directly
no test coverage detected
searching dependent graphs…