(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func TestAreaPrinter_RemoveWhenDone(t *testing.T) { |
| 54 | originalStdout := os.Stdout |
| 55 | os.Stdout = os.NewFile(0, os.DevNull) // Set os.Stdout to DevNull to hide output from cursor.Area |
| 56 | |
| 57 | a, _ := pterm.DefaultArea.WithRemoveWhenDone().Start() |
| 58 | |
| 59 | a.Update("asd") |
| 60 | a.Stop() |
| 61 | |
| 62 | os.Stdout = originalStdout // Restore original os.Stdout |
| 63 | } |
| 64 | |
| 65 | func TestAreaPrinter_CenterFullscreen(t *testing.T) { |
| 66 | originalStdout := os.Stdout |
nothing calls this directly
no test coverage detected
searching dependent graphs…