MCPcopy
hub / github.com/pterm/pterm / TestAreaPrinter_WithFullscreen

Function TestAreaPrinter_WithFullscreen

area_printer_test.go:105–115  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

103}
104
105func 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
117func TestAreaPrinter_Clear(t *testing.T) {
118 originalStdout := os.Stdout

Callers

nothing calls this directly

Calls 1

WithFullscreenMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…