MCPcopy
hub / github.com/pterm/pterm / TestAreaPrinter_Clear

Function TestAreaPrinter_Clear

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

Source from the content-addressed store, hash-verified

115}
116
117func TestAreaPrinter_Clear(t *testing.T) {
118 originalStdout := os.Stdout
119 os.Stdout = os.NewFile(0, os.DevNull) // Set os.Stdout to DevNull to hide output from cursor.Area
120
121 p := pterm.AreaPrinter{}
122 p.Update("asd")
123
124 p.Clear()
125
126 os.Stdout = originalStdout // Restore original os.Stdout
127}

Callers

nothing calls this directly

Calls 2

UpdateMethod · 0.95
ClearMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…