(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestProgressbarPrinter_AddTotalEqualsCurrent(t *testing.T) { |
| 50 | proxyToDevNull() |
| 51 | p := pterm.DefaultProgressbar.WithTotal(1) |
| 52 | p.Start() |
| 53 | p.Add(1) |
| 54 | testza.AssertEqual(t, 1, p.Current) |
| 55 | testza.AssertFalse(t, p.IsActive) |
| 56 | p.Stop() |
| 57 | } |
| 58 | |
| 59 | func TestProgressbarPrinter_RemoveWhenDone(t *testing.T) { |
| 60 | proxyToDevNull() |
nothing calls this directly
no test coverage detected
searching dependent graphs…