mirror of https://github.com/gofiber/fiber.git
👷 Add test cases for getGroupPath
parent
7c88fa41e0
commit
2d34c78e7e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue