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

Function requestFor

pkg/ruler/api_test.go:777–784  ·  view source on GitHub ↗
(t *testing.T, method string, url string, body io.Reader, userID string)

Source from the content-addressed store, hash-verified

775}
776
777func requestFor(t *testing.T, method string, url string, body io.Reader, userID string) *http.Request {
778 t.Helper()
779
780 req := httptest.NewRequest(method, url, body)
781 ctx := user.InjectOrgID(req.Context(), userID)
782
783 return req.WithContext(ctx)
784}

Callers 10

TestRuler_ListAllRulesFunction · 0.85
TestRuler_rulesFunction · 0.85
TestRuler_rules_limitFunction · 0.85
TestRuler_alertsFunction · 0.85
TestRuler_CreateFunction · 0.85
TestRuler_LimitsPerGroupFunction · 0.85

Calls 1

ContextMethod · 0.45

Tested by

no test coverage detected