(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func 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 | |
| 49 | func TestProgressbarPrinter_AddTotalEqualsCurrent(t *testing.T) { |
| 50 | proxyToDevNull() |
nothing calls this directly
no test coverage detected
searching dependent graphs…