(t *testing.T)
| 82 | } |
| 83 | |
| 84 | func setup(t *testing.T) (*outlierDetectionBalancer, *testutils.BalancerClientConn, func()) { |
| 85 | t.Helper() |
| 86 | builder := balancer.Get(Name) |
| 87 | if builder == nil { |
| 88 | t.Fatalf("balancer.Get(%q) returned nil", Name) |
| 89 | } |
| 90 | tcc := testutils.NewBalancerClientConn(t) |
| 91 | ch := channelz.RegisterChannel(nil, "test channel") |
| 92 | t.Cleanup(func() { channelz.RemoveEntry(ch.ID) }) |
| 93 | odB := builder.Build(tcc, balancer.BuildOptions{ChannelzParent: ch}) |
| 94 | return odB.(*outlierDetectionBalancer), tcc, odB.Close |
| 95 | } |
| 96 | |
| 97 | type emptyChildConfig struct { |
| 98 | serviceconfig.LoadBalancingConfig |
no test coverage detected