diff options
Diffstat (limited to 'dispatcher_test.go')
-rw-r--r-- | dispatcher_test.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/dispatcher_test.go b/dispatcher_test.go deleted file mode 100644 index 845833c..0000000 --- a/dispatcher_test.go +++ /dev/null @@ -1,22 +0,0 @@ -package mooh - -import ( - "testing" -) - -func testDispatcher (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}) - if err != nil { - t.Fatal() - } - err = d.AddRoute(&Route{Method: "GET", Path:"/", Code: testDispatcher}) - if err == nil { - t.Fatal() - } -} |