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

Method getStates

balancer/rls/balancer_test.go:1295–1302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1293}
1294
1295func (t *testCCWrapper) getStates() []balancer.State {
1296 t.mu.Lock()
1297 defer t.mu.Unlock()
1298
1299 states := make([]balancer.State, len(t.states))
1300 copy(states, t.states)
1301 return states
1302}
1303
1304// TestUpdateStatePauses tests the scenario where a config update received by
1305// the RLS LB policy results in multiple UpdateState calls from the child

Callers 1

TestUpdateStatePausesMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected