()
| 70 | } |
| 71 | |
| 72 | func ExampleProgressBar_invisible() { |
| 73 | bar := NewOptions(100, OptionSetWidth(10), OptionSetRenderBlankState(true), OptionSetVisibility(false)) |
| 74 | bar.Reset() |
| 75 | fmt.Println("hello, world") |
| 76 | time.Sleep(1 * time.Second) |
| 77 | bar.Add(10) |
| 78 | // Output: |
| 79 | // hello, world |
| 80 | } |
| 81 | |
| 82 | func ExampleOptionThrottle() { |
| 83 | bar := NewOptions(100, OptionSetWidth(10), OptionThrottle(100*time.Millisecond)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…