()
| 91 | } |
| 92 | |
| 93 | func ExampleOptionClearOnFinish() { |
| 94 | bar := NewOptions(100, OptionSetWidth(10), OptionClearOnFinish()) |
| 95 | bar.Reset() |
| 96 | bar.Finish() |
| 97 | fmt.Println("Finished") |
| 98 | // Output: |
| 99 | // Finished |
| 100 | } |
| 101 | |
| 102 | func TestSpinnerClearOnFinish(t *testing.T) { |
| 103 | buf := strings.Builder{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…