| 49 | const progressInterval = time.Millisecond * 100 |
| 50 | |
| 51 | type progressBarImpl struct { |
| 52 | display ProgressDisplay |
| 53 | indeterminate bool |
| 54 | interval time.Duration |
| 55 | iterator iterator |
| 56 | percent int |
| 57 | prefix string |
| 58 | suffix string |
| 59 | final string |
| 60 | writer io.Writer |
| 61 | writtenLen int |
| 62 | running bool |
| 63 | wait chan struct{} |
| 64 | wMutex sync.Mutex |
| 65 | sync.Mutex |
| 66 | } |
| 67 | |
| 68 | func newProgressBar(s *Shell) ProgressBar { |
| 69 | display := simpleProgressDisplay{} |
nothing calls this directly
no outgoing calls
no test coverage detected