MCPcopy
hub / github.com/grpc/grpc-go / testingPicker

Struct testingPicker

picker_wrapper_test.go:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected