()
| 161 | } |
| 162 | |
| 163 | func ExampleOptionShowIts() { |
| 164 | bar := NewOptions(100, OptionSetWidth(10), OptionShowIts(), OptionSetPredictTime(false)) |
| 165 | bar.Reset() |
| 166 | time.Sleep(1 * time.Second) |
| 167 | bar.Add(10) |
| 168 | // Output: |
| 169 | // 10% |█ | (10 it/s) |
| 170 | } |
| 171 | |
| 172 | func ExampleOptionShowCount_minuscule() { |
| 173 | bar := NewOptions(10000, OptionSetWidth(10), OptionShowCount(), OptionSetPredictTime(false)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…