MCPcopy
hub / github.com/julienschmidt/httprouter / TestRouterRoot

Function TestRouterRoot

router_test.go:167–175  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

165}
166
167func TestRouterRoot(t *testing.T) {
168 router := New()
169 recv := catchPanic(func() {
170 router.GET("noSlashRoot", nil)
171 })
172 if recv == nil {
173 t.Fatal("registering path not beginning with '/' did not panic")
174 }
175}
176
177func TestRouterChaining(t *testing.T) {
178 router1 := New()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
catchPanicFunction · 0.85
GETMethod · 0.80

Tested by

no test coverage detected