Skip to content

Commit

Permalink
add urldecode function (opentofu#1234)
Browse files Browse the repository at this point in the history
Signed-off-by: pooriaghaedi <[email protected]>
  • Loading branch information
pooriaghaedi committed Feb 22, 2024
1 parent 8a5077b commit e566f2b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/lang/funcs/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ func TestURLDecode(t *testing.T) {
{
cty.StringVal("foo%2Fbar"),
cty.StringVal("foo/bar"),

false,
},
{
Expand Down Expand Up @@ -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)

Check failure on line 374 in internal/lang/funcs/encoding_test.go

View workflow job for this annotation

GitHub Actions / Code Consistency Checks

this value of err is never used (SA4006)
if err != nil {
t.Errorf("encode() error = %v, wantErr = false", err)
return
}
got, err := URLDecode(encoded)

if test.Err {
Expand Down

0 comments on commit e566f2b

Please sign in to comment.