()
| 161 | const testBackendAddrsCount = 12 |
| 162 | |
| 163 | func init() { |
| 164 | balancer.Register(newTestConfigBalancerBuilder()) |
| 165 | for i := 0; i < testBackendAddrsCount; i++ { |
| 166 | testBackendAddrStrs = append(testBackendAddrStrs, fmt.Sprintf("%d.%d.%d.%d:%d", i, i, i, i, i)) |
| 167 | } |
| 168 | wtbBuilder = balancer.Get(Name) |
| 169 | wtbParser = wtbBuilder.(balancer.ConfigParser) |
| 170 | |
| 171 | NewRandomWRR = testutils.NewTestWRR |
| 172 | } |
| 173 | |
| 174 | // Tests the behavior of the weighted_target LB policy when there are no targets |
| 175 | // configured. It verifies that the LB policy sets the overall channel state to |
nothing calls this directly
no test coverage detected