👷 Add test cases for group router empty prefix path

pull/1094/head
Kiyon 2020-12-28 13:13:24 +08:00
parent d2561560a0
commit 7c88fa41e0
1 changed files with 3 additions and 0 deletions

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)