Skip to content

Commit

Permalink
remove test body
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet committed Mar 10, 2024
1 parent 5c2884d commit 0e046da
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions protocol/test/test_test.go
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
package test

import (
"encoding/base64"
"fmt"
"strings"
"testing"

"github.com/stretchr/testify/require"
)

// used as a testing wrapper to just test fun stuff quickly.

func TestFlow(t *testing.T) {
// Decoding base64 string
bodyString := "CiEyNTAwMDAwMC4wMDAwMDAwMDAwMDAwMDAwMDBhZXZtb3M="
decodedBody, err := base64.StdEncoding.DecodeString(bodyString)
require.Nil(t, err)
fmt.Println("Decoded body:", string(decodedBody)) // Output the decoded body
resultString := strings.ReplaceAll(string(decodedBody), "!", "")
fmt.Println("Result:", resultString) // Output the decoded body

Check failure on line 10 in protocol/test/test_test.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
}

0 comments on commit 0e046da

Please sign in to comment.