(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestRouter_Root(t *testing.T) { |
| 51 | r := newTestRouter() |
| 52 | insertRoute(r, "GET", "/") |
| 53 | |
| 54 | _, _, found := r.Search("GET", "/") |
| 55 | if !found { |
| 56 | t.Fatal("expected to find root /") |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | func TestRouter_SingleParam(t *testing.T) { |
| 61 | r := newTestRouter() |
nothing calls this directly
no test coverage detected