test: add more tests for escaped colon routes

This commit is contained in:
yuxialuozi 2026-01-09 21:52:25 +08:00
parent 4f89cd5dbd
commit a3f315d038

View File

@ -1025,6 +1025,7 @@ func TestTreeEscapedColon(t *testing.T) {
"/api/:resource\\:method": true,
"/escape/\\:static": true,
"/invalid/\\x": false,
"/invalid/:id\\a": false,
}
for route, valid := range routes {