👷 Add test cases for group router empty prefix path

This commit is contained in:
Kiyon 2020-12-28 13:13:24 +08:00
parent d2561560a0
commit 7c88fa41e0

View File

@ -808,6 +808,9 @@ func Test_App_Group(t *testing.T) {
grp.All("/ALL", dummyHandler)
testStatus200(t, app, "/test/ALL", MethodPost)
grp.Use(dummyHandler)
testStatus200(t, app, "/test/oke", MethodGet)
grp.Use("/USE", dummyHandler)
testStatus200(t, app, "/test/USE/oke", MethodGet)