MCPcopy
hub / github.com/pterm/pterm / TestProgressbarPrinter_AddWithTotalOfZero

Function TestProgressbarPrinter_AddWithTotalOfZero

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

Source from the content-addressed store, hash-verified

39}
40
41func TestProgressbarPrinter_AddWithTotalOfZero(t *testing.T) {
42 proxyToDevNull()
43 p := pterm.ProgressbarPrinter{}.WithTotal(0)
44 p.Add(1337)
45 testza.AssertEqual(t, 0, p.Current)
46 p.Stop()
47}
48
49func TestProgressbarPrinter_AddTotalEqualsCurrent(t *testing.T) {
50 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…