(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func 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 | |
| 41 | func TestProgressbarPrinter_AddWithTotalOfZero(t *testing.T) { |
| 42 | proxyToDevNull() |
nothing calls this directly
no test coverage detected
searching dependent graphs…