MCPcopy
hub / github.com/pterm/pterm / TestProgressbarPrinter_Add

Function TestProgressbarPrinter_Add

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

Source from the content-addressed store, hash-verified

11)
12
13func TestProgressbarPrinter_Add(t *testing.T) {
14 proxyToDevNull()
15 p := pterm.DefaultProgressbar.WithTotal(2000)
16 p.Add(1337)
17 testza.AssertEqual(t, 1337, p.Current)
18 p.Stop()
19}
20
21func TestProgressbarPrinter_Add_With(t *testing.T) {
22 proxyToDevNull()

Callers

nothing calls this directly

Calls 4

proxyToDevNullFunction · 0.85
WithTotalMethod · 0.80
AddMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…