(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func TestAreaPrinter_CenterFullscreen(t *testing.T) { |
| 66 | originalStdout := os.Stdout |
| 67 | os.Stdout = os.NewFile(0, os.DevNull) // Set os.Stdout to DevNull to hide output from cursor.Area |
| 68 | |
| 69 | a, _ := pterm.DefaultArea.WithRemoveWhenDone().WithFullscreen().WithCenter().Start() |
| 70 | |
| 71 | a.Update("asd") |
| 72 | a.Stop() |
| 73 | |
| 74 | os.Stdout = originalStdout // Restore original os.Stdout |
| 75 | } |
| 76 | |
| 77 | func TestAreaPrinter_GetContent(t *testing.T) { |
| 78 | originalStdout := os.Stdout |
nothing calls this directly
no test coverage detected
searching dependent graphs…