MCPcopy
hub / github.com/pterm/pterm / TestProgressbarPrinter_AddWithNoStyle

Function TestProgressbarPrinter_AddWithNoStyle

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

Source from the content-addressed store, hash-verified

31}
32
33func TestProgressbarPrinter_AddWithNoStyle(t *testing.T) {
34 proxyToDevNull()
35 p := pterm.ProgressbarPrinter{}.WithTotal(2000)
36 p.Add(1337)
37 testza.AssertEqual(t, 1337, p.Current)
38 p.Stop()
39}
40
41func TestProgressbarPrinter_AddWithTotalOfZero(t *testing.T) {
42 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…