Permalink
Browse files

Add a function to set url params for test

  • Loading branch information...
achiku committed Feb 25, 2017
1 parent 999ef73 commit f8f4828232971c798713d8c4f7bb9739f9950dc4
Showing with 8 additions and 0 deletions.
  1. +8 −0 testing.go
View
@@ -0,0 +1,8 @@
package mux
import "net/http"
// TestSetURLParam set url params
func TestSetURLParam(r *http.Request, val map[string]string) *http.Request {
return setVars(r, val)
}

0 comments on commit f8f4828

Please sign in to comment.