MCPcopy Index your code
hub / github.com/cortexproject/cortex / Test_NewProxy

Function Test_NewProxy

tools/querytee/proxy_test.go:27–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25func (testComparator) Compare(expected, actual []byte) error { return nil }
26
27func Test_NewProxy(t *testing.T) {
28 cfg := ProxyConfig{}
29
30 p, err := NewProxy(cfg, log.NewNopLogger(), testRoutes, nil)
31 assert.Equal(t, errMinBackends, err)
32 assert.Nil(t, p)
33}
34
35func Test_Proxy_RequestsForwarding(t *testing.T) {
36 const (

Callers

nothing calls this directly

Calls 2

NewProxyFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected