From 2d34c78e7e0d1bf9544d68abc9b414f347d4ead7 Mon Sep 17 00:00:00 2001 From: Kiyon Date: Mon, 28 Dec 2020 13:16:33 +0800 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=91=B7=20Add=20test=20cases=20for=20ge?= =?UTF-8?q?tGroupPath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers_test.go b/helpers_test.go index 45a34097..d3c62e64 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -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