MCPcopy
hub / github.com/pterm/pterm / TestSpinnerPrinter_UpdateTextRawOutput

Function TestSpinnerPrinter_UpdateTextRawOutput

spinner_printer_test.go:78–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestSpinnerPrinter_UpdateTextRawOutput(t *testing.T) {
79 pterm.DisableStyling()
80 p := pterm.DefaultSpinner
81 p.Start()
82 p.UpdateText("test")
83
84 testza.AssertEqual(t, "test", p.Text)
85 p.Stop()
86 pterm.EnableStyling()
87}
88
89func TestSpinnerPrinter_StopSetsIsActiveWhenRawOutput(t *testing.T) {
90 // Regression test for https://github.com/pterm/pterm/issues/763

Callers

nothing calls this directly

Calls 5

DisableStylingFunction · 0.92
EnableStylingFunction · 0.92
UpdateTextMethod · 0.80
StartMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…