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

Function newTestConfigBalancerBuilder

balancer/weightedtarget/weightedtarget_test.go:67–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func newTestConfigBalancerBuilder() *testConfigBalancerBuilder {
68 return &testConfigBalancerBuilder{
69 Builder: balancer.Get(roundrobin.Name),
70 }
71}
72
73// pickAndCheckError returns a function which takes a picker, invokes the Pick() method
74// multiple times and ensures that the error returned by the picker matches the provided error.

Callers 1

initFunction · 0.85

Calls 1

GetFunction · 0.92

Tested by

no test coverage detected