diff options
| author | Raúl Benencia <id@rbenencia.name> | 2026-06-05 10:46:58 -0300 |
|---|---|---|
| committer | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2026-06-05 13:58:19 -0300 |
| commit | f4631375414422d87f0d16579fd3101fca3c2289 (patch) | |
| tree | 9a3cbc76e213367b60561ccbfb8103f9f877c600 /vendor/github.com/gorilla/mux/test_helpers.go | |
| parent | 3fff6f8cdf452c89d0120845f85f552617129070 (diff) | |
Prune gorilla mux
Diffstat (limited to 'vendor/github.com/gorilla/mux/test_helpers.go')
| -rw-r--r-- | vendor/github.com/gorilla/mux/test_helpers.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/vendor/github.com/gorilla/mux/test_helpers.go b/vendor/github.com/gorilla/mux/test_helpers.go deleted file mode 100644 index 5f5c496..0000000 --- a/vendor/github.com/gorilla/mux/test_helpers.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2012 The Gorilla Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package mux - -import "net/http" - -// SetURLVars sets the URL variables for the given request, to be accessed via -// mux.Vars for testing route behaviour. Arguments are not modified, a shallow -// copy is returned. -// -// This API should only be used for testing purposes; it provides a way to -// inject variables into the request context. Alternatively, URL variables -// can be set by making a route that captures the required variables, -// starting a server and sending the request to that server. -func SetURLVars(r *http.Request, val map[string]string) *http.Request { - return requestWithVars(r, val) -} |
