mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +08:00
add: test cases
This commit is contained in:
parent
802125c83d
commit
c030c4546a
@ -417,6 +417,9 @@ func TestTreeWildcardConflict(t *testing.T) {
|
|||||||
{"/user_:name", false},
|
{"/user_:name", false},
|
||||||
{"/id:id", false},
|
{"/id:id", false},
|
||||||
{"/id/:id", false},
|
{"/id/:id", false},
|
||||||
|
{"/static/*file", false},
|
||||||
|
{"/static/", true},
|
||||||
|
{"/static/", false},
|
||||||
}
|
}
|
||||||
testRoutes(t, routes)
|
testRoutes(t, routes)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user