Codebase list golang-github-vbauerster-mpb / a59f4ec
fix tests Vladimir Bauer 7 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
6464
6565 bar := p.AddBar(int64(total), TrimSpace())
6666
67 bar.SetRefill(till)
67 bar.SetRefill(int64(till))
6868 bar.IncrBy(till)
6969
7070 for i := 0; i < total-till; i++ {
1212 total, current int64
1313 barWidth int
1414 trimSpace bool
15 rup int
15 rup int64
1616 want string
1717 }{
1818 2: {
273273 s.current = tc.current
274274 s.trimSpace = tc.trimSpace
275275 if tc.rup > 0 {
276 if f, ok := s.filler.(interface{ SetRefill(int) }); ok {
276 if f, ok := s.filler.(interface{ SetRefill(int64) }); ok {
277277 f.SetRefill(tc.rup)
278278 }
279279 }