| 51 | } |
| 52 | |
| 53 | type testingPicker struct { |
| 54 | err error |
| 55 | sc balancer.SubConn |
| 56 | maxCalled int64 |
| 57 | } |
| 58 | |
| 59 | func (p *testingPicker) Pick(balancer.PickInfo) (balancer.PickResult, error) { |
| 60 | if atomic.AddInt64(&p.maxCalled, -1) < 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected