(t *testing.T, requestModifiers ...func(*http.Request))
| 255 | } |
| 256 | |
| 257 | func newHTTPRequest(t *testing.T, requestModifiers ...func(*http.Request)) *http.Request { |
| 258 | t.Helper() |
| 259 | r, err := http.NewRequest(http.MethodGet, "h", http.NoBody) |
| 260 | if err != nil { |
| 261 | t.Fatalf("failed to construct request: %v", err) |
| 262 | } |
| 263 | for _, modify := range requestModifiers { |
| 264 | modify(r) |
| 265 | } |
| 266 | return r |
| 267 | } |
| 268 | |
| 269 | type customFSUser struct { |
| 270 | users.Store |
no outgoing calls
no test coverage detected