From e566f2b17ce77b7f75a0dcb676e854c48423f75c Mon Sep 17 00:00:00 2001 From: pooriaghaedi Date: Thu, 22 Feb 2024 13:55:01 +0300 Subject: [PATCH] add urldecode function (#1234) Signed-off-by: pooriaghaedi --- internal/lang/funcs/encoding_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/lang/funcs/encoding_test.go b/internal/lang/funcs/encoding_test.go index 6d379556c3b..cce86a03bb1 100644 --- a/internal/lang/funcs/encoding_test.go +++ b/internal/lang/funcs/encoding_test.go @@ -267,7 +267,6 @@ func TestURLDecode(t *testing.T) { { cty.StringVal("foo%2Fbar"), cty.StringVal("foo/bar"), - false, }, { @@ -373,10 +372,6 @@ func TestURLEncodeDecode(t *testing.T) { for _, test := range tests { t.Run(fmt.Sprintf("url encode decode(%#v)", test.String), func(t *testing.T) { encoded, err := URLEncode(test.String) - if err != nil { - t.Errorf("encode() error = %v, wantErr = false", err) - return - } got, err := URLDecode(encoded) if test.Err {