(t *testing.T, f *fakeThrottler)
| 111 | } |
| 112 | |
| 113 | func overrideAdaptiveThrottler(t *testing.T, f *fakeThrottler) { |
| 114 | origAdaptiveThrottler := newAdaptiveThrottler |
| 115 | newAdaptiveThrottler = func() adaptiveThrottler { return f } |
| 116 | t.Cleanup(func() { newAdaptiveThrottler = origAdaptiveThrottler }) |
| 117 | } |
| 118 | |
| 119 | // buildBasicRLSConfig constructs a basic service config for the RLS LB policy |
| 120 | // with header matching rules. This expects the passed child policy name to |
no outgoing calls
no test coverage detected