(t *testing.T)
| 436 | } |
| 437 | |
| 438 | func TestTreeChildConflict(t *testing.T) { |
| 439 | routes := []testRoute{ |
| 440 | {"/cmd/vet", false}, |
| 441 | {"/cmd/:tool", false}, |
| 442 | {"/cmd/:tool/:sub", false}, |
| 443 | {"/cmd/:tool/misc", false}, |
| 444 | {"/cmd/:tool/:othersub", true}, |
| 445 | {"/src/AUTHORS", false}, |
| 446 | {"/src/*filepath", true}, |
| 447 | {"/user_x", false}, |
| 448 | {"/user_:name", false}, |
| 449 | {"/id/:id", false}, |
| 450 | {"/id:id", false}, |
| 451 | {"/:id", false}, |
| 452 | {"/*filepath", true}, |
| 453 | } |
| 454 | testRoutes(t, routes) |
| 455 | } |
| 456 | |
| 457 | func TestTreeDuplicatePath(t *testing.T) { |
| 458 | tree := &node{} |
nothing calls this directly
no test coverage detected