newCustomUpstreamConfig is a helper function that returns an initialized [*proxy.CustomUpstreamConfig].
(ups upstream.Upstream, enabled bool)
| 26 | // newCustomUpstreamConfig is a helper function that returns an initialized |
| 27 | // [*proxy.CustomUpstreamConfig]. |
| 28 | func newCustomUpstreamConfig(ups upstream.Upstream, enabled bool) (c *proxy.CustomUpstreamConfig) { |
| 29 | return proxy.NewCustomUpstreamConfig( |
| 30 | &proxy.UpstreamConfig{Upstreams: []upstream.Upstream{ups}}, |
| 31 | enabled, |
| 32 | 0, |
| 33 | false, |
| 34 | ) |
| 35 | } |
| 36 | |
| 37 | // isCachedWithCustomConfig is a helper function that returns the caching |
| 38 | // results of a constructed request using the provided custom upstream |
no test coverage detected
searching dependent graphs…