(t *testing.T)
| 103 | } |
| 104 | |
| 105 | func TestAreaPrinter_WithFullscreen(t *testing.T) { |
| 106 | originalStdout := os.Stdout |
| 107 | os.Stdout = os.NewFile(0, os.DevNull) // Set os.Stdout to DevNull to hide output from cursor.Area |
| 108 | |
| 109 | p := pterm.AreaPrinter{} |
| 110 | p2 := p.WithFullscreen() |
| 111 | |
| 112 | testza.AssertTrue(t, p2.Fullscreen) |
| 113 | |
| 114 | os.Stdout = originalStdout // Restore original os.Stdout |
| 115 | } |
| 116 | |
| 117 | func TestAreaPrinter_Clear(t *testing.T) { |
| 118 | originalStdout := os.Stdout |
nothing calls this directly
no test coverage detected
searching dependent graphs…