👷 Add test cases for getGroupPath

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

View File

@ -158,6 +158,9 @@ func Test_Utils_getGroupPath(t *testing.T) {
res = getGroupPath("/v1/api", "group")
utils.AssertEqual(t, "/v1/api/group", res)
res = getGroupPath("/v1/api", "")
utils.AssertEqual(t, "/v1/api", res)
}
// go test -v -run=^$ -bench=Benchmark_Utils_ -benchmem -count=3