MCPcopy
hub / github.com/pterm/pterm / TestAreaPrinter_CenterFullscreen

Function TestAreaPrinter_CenterFullscreen

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

Source from the content-addressed store, hash-verified

63}
64
65func 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
77func TestAreaPrinter_GetContent(t *testing.T) {
78 originalStdout := os.Stdout

Callers

nothing calls this directly

Calls 6

WithCenterMethod · 0.80
WithFullscreenMethod · 0.80
UpdateMethod · 0.80
StartMethod · 0.45
WithRemoveWhenDoneMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…