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

Function init

internal/xds/balancer/priority/balancer_test.go:68–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68func init() {
69 for i := 0; i < testBackendAddrsCount; i++ {
70 testBackendAddrStrs = append(testBackendAddrStrs, fmt.Sprintf("%d.%d.%d.%d:%d", i, i, i, i, i))
71 }
72 balancer.Register(&anotherRR{Builder: balancer.Get(roundrobin.Name)})
73}
74
75func overrideInitTimeout(t *testing.T, val time.Duration) {
76 orig := DefaultPriorityInitTimeout

Callers

nothing calls this directly

Calls 7

ConnectMethod · 0.95
RegisterFunction · 0.92
GetFunction · 0.92
RegisterFunction · 0.92
UpdateStateMethod · 0.65
ErrorfMethod · 0.65
NewSubConnMethod · 0.65

Tested by

no test coverage detected