(t *testing.T)
| 178 | } |
| 179 | |
| 180 | func (s) TestPickerNoRequestHash(t *testing.T) { |
| 181 | ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout) |
| 182 | defer cancel() |
| 183 | |
| 184 | ring, epStates := testRingAndEndpointStates([]connectivity.State{connectivity.Ready}) |
| 185 | p := &picker{ |
| 186 | ring: ring, |
| 187 | endpointStates: epStates, |
| 188 | } |
| 189 | if _, err := p.Pick(balancer.PickInfo{Ctx: ctx}); err == nil { |
| 190 | t.Errorf("Pick() should have failed with no request hash") |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | func (s) TestPickerRequestHashKey(t *testing.T) { |
| 195 | tests := []struct { |
nothing calls this directly
no test coverage detected