Skip to content

Commit

Permalink
Add a function to set url params for test
Browse files Browse the repository at this point in the history
  • Loading branch information
achiku committed Feb 25, 2017
1 parent 999ef73 commit f8f4828
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testing.go
Original file line number Diff line number Diff line change
@@ -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.