()
| 58 | } |
| 59 | |
| 60 | func fakeRequest() *http.Request { |
| 61 | r, _ := http.NewRequest("GET", "/", nil) |
| 62 | repl := caddy.NewReplacer() |
| 63 | ctx := context.WithValue(r.Context(), caddy.ReplacerCtxKey, repl) |
| 64 | r = r.WithContext(ctx) |
| 65 | return r |
| 66 | } |
no test coverage detected