MCPcopy
hub / github.com/pterm/pterm / TestAreaPrinter_NilPrint

Function TestAreaPrinter_NilPrint

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

Source from the content-addressed store, hash-verified

9)
10
11func TestAreaPrinter_NilPrint(t *testing.T) {
12 originalStdout := os.Stdout
13 os.Stdout = os.NewFile(0, os.DevNull) // Set os.Stdout to DevNull to hide output from cursor.Area
14
15 p := pterm.AreaPrinter{}
16 p.Update("asd")
17
18 os.Stdout = originalStdout // Restore original os.Stdout
19}
20
21func TestAreaPrinter_GenericStart(t *testing.T) {
22 originalStdout := os.Stdout

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…