Codebase list golang-github-vbauerster-mpb / 3497574
TestBarSetRefill fix Vladimir Bauer 7 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5151 p.Wait()
5252 }
5353
54 func TestBarIncrRefillBy(t *testing.T) {
54 func TestBarSetRefill(t *testing.T) {
5555 var buf bytes.Buffer
5656
5757 width := 100
6363
6464 bar := p.AddBar(int64(total), BarTrim())
6565
66 bar.RefillBy(till, refillRune)
66 bar.SetRefill(till, refillRune)
67 bar.IncrBy(till)
6768
6869 for i := 0; i < total-till; i++ {
6970 bar.Increment()