MCPcopy
hub / github.com/pterm/pterm / TestProgressbarPrinter_Increment

Function TestProgressbarPrinter_Increment

progressbar_printer_test.go:101–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

99}
100
101func TestProgressbarPrinter_Increment(t *testing.T) {
102 p := pterm.DefaultProgressbar.WithTotal(2000)
103 p.Increment()
104 testza.AssertEqual(t, 1, p.Current)
105}
106
107func TestProgressbarPrinter_WithBarStyle(t *testing.T) {
108 s := pterm.NewStyle(pterm.FgRed, pterm.BgBlue, pterm.Bold)

Callers

nothing calls this directly

Calls 2

WithTotalMethod · 0.80
IncrementMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…