mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-18 23:12:17 +08:00
chg(tree-test): update test case with register new route in TestRouteContextHoldsFullPath
This commit is contained in:
parent
c2e0974b3d
commit
f85416792e
@ -585,7 +585,6 @@ func TestRouteContextHoldsFullPath(t *testing.T) {
|
|||||||
// Test routes
|
// Test routes
|
||||||
routes := []string{
|
routes := []string{
|
||||||
"/simple",
|
"/simple",
|
||||||
"/project/:name/bui",
|
|
||||||
"/project/:name",
|
"/project/:name",
|
||||||
"/",
|
"/",
|
||||||
"/news/home",
|
"/news/home",
|
||||||
@ -593,6 +592,10 @@ func TestRouteContextHoldsFullPath(t *testing.T) {
|
|||||||
"/simple-two/one",
|
"/simple-two/one",
|
||||||
"/simple-two/one-two",
|
"/simple-two/one-two",
|
||||||
"/project/:name/build/*params",
|
"/project/:name/build/*params",
|
||||||
|
"/project/:name/bui",
|
||||||
|
"/user/:id/status",
|
||||||
|
"/user/:id",
|
||||||
|
"/user/:id/profile",
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, route := range routes {
|
for _, route := range routes {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user