()
| 115 | } |
| 116 | |
| 117 | func ExampleProgressBar_Finish() { |
| 118 | bar := NewOptions(100, OptionSetWidth(10), OptionShowCount(), OptionShowBytes(true), OptionShowIts()) |
| 119 | bar.Reset() |
| 120 | time.Sleep(1 * time.Second) |
| 121 | bar.Finish() |
| 122 | // Output: |
| 123 | // 100% |██████████| (100/100 B, 100 B/s, 100 it/s) |
| 124 | } |
| 125 | |
| 126 | func TestSpinnerFinish(t *testing.T) { |
| 127 | buf := strings.Builder{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…