MCPcopy Index your code
hub / github.com/pterm/pterm / TestAreaPrinter_GenericStartRawOutput

Function TestAreaPrinter_GenericStartRawOutput

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

Source from the content-addressed store, hash-verified

29}
30
31func TestAreaPrinter_GenericStartRawOutput(t *testing.T) {
32 originalStdout := os.Stdout
33 os.Stdout = os.NewFile(0, os.DevNull) // Set os.Stdout to DevNull to hide output from cursor.Area
34
35 pterm.DisableStyling()
36 p := pterm.DefaultArea
37 p.GenericStart()
38 pterm.EnableStyling()
39
40 os.Stdout = originalStdout // Restore original os.Stdout
41}
42
43func TestAreaPrinter_GenericStop(t *testing.T) {
44 originalStdout := os.Stdout

Callers

nothing calls this directly

Calls 3

DisableStylingFunction · 0.92
EnableStylingFunction · 0.92
GenericStartMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…