()
| 192 | } |
| 193 | |
| 194 | func (w *testWatch) update() { |
| 195 | w.Lock() |
| 196 | if w.currentCalled < w.errAfter { |
| 197 | w.data = getMockService(w.ctrl) |
| 198 | } else { |
| 199 | w.data = nil |
| 200 | } |
| 201 | w.currentCalled++ |
| 202 | w.Unlock() |
| 203 | w.ch <- struct{}{} |
| 204 | } |
| 205 | |
| 206 | func (w *testWatch) Close() {} |
| 207 |
no test coverage detected