Improves unit test coverage

This commit is contained in:
Manu Mtz-Almeida
2015-05-19 02:29:32 +02:00
parent 36fb71ff2f
commit 0cb52ccef7
3 changed files with 69 additions and 8 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func TestCreateEngine(t *testing.T) {
assert.True(t, router.HandleMethodNotAllowed)
assert.Panics(t, func() { router.handle("", "/", HandlersChain{func(_ *Context) {}}) })
assert.Panics(t, func() { router.handle("GET", "", HandlersChain{func(_ *Context) {}}) })
assert.Panics(t, func() { router.handle("GET", "a", HandlersChain{func(_ *Context) {}}) })
assert.Panics(t, func() { router.handle("GET", "/", HandlersChain{}) })
}