(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestProgressbarPrinter_Add_With(t *testing.T) { |
| 22 | proxyToDevNull() |
| 23 | w := pterm.GetTerminalWidth() |
| 24 | h := pterm.GetTerminalHeight() |
| 25 | pterm.SetForcedTerminalSize(1, 1) |
| 26 | p := pterm.DefaultProgressbar.WithTotal(2000) |
| 27 | p.Add(1337) |
| 28 | testza.AssertEqual(t, 1337, p.Current) |
| 29 | p.Stop() |
| 30 | pterm.SetForcedTerminalSize(w, h) |
| 31 | } |
| 32 | |
| 33 | func TestProgressbarPrinter_AddWithNoStyle(t *testing.T) { |
| 34 | proxyToDevNull() |
nothing calls this directly
no test coverage detected
searching dependent graphs…