(duration time.Duration)
| 35 | } |
| 36 | |
| 37 | func (w *worker) advanceClock(duration time.Duration) { |
| 38 | w.mutex.Lock() |
| 39 | defer w.mutex.Unlock() |
| 40 | w.time = w.time.Add(duration) |
| 41 | } |
| 42 | |
| 43 | func (w *worker) run(batches chan []interface{}, wg *sync.WaitGroup) { |
| 44 | for batch := range batches { |
no test coverage detected