MCPcopy
hub / github.com/uber/aresdb / update

Method update

cluster/topology/dynamic_test.go:194–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192}
193
194func (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
206func (w *testWatch) Close() {}
207

Callers 1

runMethod · 0.95

Calls 3

getMockServiceFunction · 0.85
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected