MCPcopy Index your code
hub / github.com/filebrowser/filebrowser / newHTTPRequest

Function newHTTPRequest

http/public_test.go:257–267  ·  view source on GitHub ↗
(t *testing.T, requestModifiers ...func(*http.Request))

Source from the content-addressed store, hash-verified

255}
256
257func 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
269type customFSUser struct {
270 users.Store

Calls

no outgoing calls

Tested by

no test coverage detected