diff options
author | Franck Cuny <franck@lumberjaph.net> | 2013-04-27 10:03:43 -0700 |
---|---|---|
committer | Franck Cuny <franck@lumberjaph.net> | 2013-04-27 10:03:43 -0700 |
commit | 89c722d8cb9ae27a1c701ced674df8795c5bd4fe (patch) | |
tree | d9ecd9133b4adae9ef635188820b8a9431e538a5 /router_test.go | |
parent | Rename a few files. (diff) | |
download | path-router-89c722d8cb9ae27a1c701ced674df8795c5bd4fe.tar.gz |
Rename all instances of Dispatcher to Router.
Diffstat (limited to 'router_test.go')
-rw-r--r-- | router_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/router_test.go b/router_test.go index 845833c..df67607 100644 --- a/router_test.go +++ b/router_test.go @@ -4,18 +4,18 @@ import ( "testing" ) -func testDispatcher (req *Request) (Response, error) { +func testRouter (req *Request) (Response, error) { resp := Response{} return resp, nil } func testBasic(t *testing.T) { - d := BuildDispatcher() - err := d.AddRoute(&Route{Method:"GET", Path:"/", Code: testDispatcher}) + d := BuildRouter() + err := d.AddRoute(&Route{Method:"GET", Path:"/", Code: testRouter}) if err != nil { t.Fatal() } - err = d.AddRoute(&Route{Method: "GET", Path:"/", Code: testDispatcher}) + err = d.AddRoute(&Route{Method: "GET", Path:"/", Code: testRouter}) if err == nil { t.Fatal() } |