MCPcopy
hub / github.com/gin-gonic/gin / TestTreeChildConflict

Function TestTreeChildConflict

tree_test.go:438–455  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

436}
437
438func 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
457func TestTreeDuplicatePath(t *testing.T) {
458 tree := &node{}

Callers

nothing calls this directly

Calls 1

testRoutesFunction · 0.85

Tested by

no test coverage detected