From c0f46c98f14de0048c2f4c40ff54ebb33b383b39 Mon Sep 17 00:00:00 2001 From: naiba Date: Wed, 29 Sep 2021 20:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20=E6=9B=B4=E6=96=B0IP=E8=84=B1?= =?UTF-8?q?=E6=95=8F=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/utils/utils_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/utils/utils_test.go b/pkg/utils/utils_test.go index 259150a..688a703 100644 --- a/pkg/utils/utils_test.go +++ b/pkg/utils/utils_test.go @@ -14,24 +14,24 @@ type testSt struct { func TestNotification(t *testing.T) { cases := []testSt{ { - input: "ip(v4:103.80.236.249,v6:[d5ce:d811:cdb8:067a:a873:2076:9521:9d2d])", - output: "ip(v4:103.****.249,v6:[d5ce:d811:****:9521:9d2d])", + input: "103.80.236.249/d5ce:d811:cdb8:067a:a873:2076:9521:9d2d", + output: "103.****.249/d5ce:d811:****:9521:9d2d", }, { - input: "ip(v4:3.80.236.29,v6:[d5ce::cdb8:067a:a873:2076:9521:9d2d])", - output: "ip(v4:3.****.29,v6:[d5ce::****:9521:9d2d])", + input: "3.80.236.29/d5ce::cdb8:067a:a873:2076:9521:9d2d", + output: "3.****.29/d5ce::****:9521:9d2d", }, { - input: "ip(v4:3.80.236.29,v6:[d5ce::cdb8:067a:a873:2076::9d2d])", - output: "ip(v4:3.****.29,v6:[d5ce::****::9d2d])", + input: "3.80.236.29/d5ce::cdb8:067a:a873:2076::9d2d", + output: "3.****.29/d5ce::****::9d2d", }, { - input: "ip(v4:3.80.236.9,v6:[d5ce::cdb8:067a:a873:2076::9d2d])", - output: "ip(v4:3.****.9,v6:[d5ce::****::9d2d])", + input: "3.80.236.9/d5ce::cdb8:067a:a873:2076::9d2d", + output: "3.****.9/d5ce::****::9d2d", }, { - input: "ip(v4:3.80.236.9,v6:[d5ce::cdb8:067a:a873:2076::9d2d])", - output: "ip(v4:3.****.9,v6:[d5ce::****::9d2d])", + input: "3.80.236.9/d5ce::cdb8:067a:a873:2076::9d2d", + output: "3.****.9/d5ce::****::9d2d", }, }