(t *testing.T, method string, url string, body io.Reader, userID string)
| 775 | } |
| 776 | |
| 777 | func 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 | } |
no test coverage detected