diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 11:18:14 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 11:18:42 +0100 |
| commit | e9f8db8ee8fccf60e58deb1d72766f94a053bb16 (patch) | |
| tree | ffa5a9be67717ecc8ff7bdc03d5f96028facb0e3 /internal/util/util_test.go | |
| parent | b4ff890ec2b459148d893499a34a6d2954530369 (diff) | |
Document: Add comments for most functions and packages
Errors and test files still need to be done. Also some getters are
changed by removing the 'get' prefix
Diffstat (limited to 'internal/util/util_test.go')
| -rw-r--r-- | internal/util/util_test.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/util/util_test.go b/internal/util/util_test.go index bb76752..be19b11 100644 --- a/internal/util/util_test.go +++ b/internal/util/util_test.go @@ -57,18 +57,6 @@ func TestMakeRandomByteSlice(t *testing.T) { } } -func TestWAYFEncode(t *testing.T) { - // AuthTemplate - returnTo := "127.0.0.1:8000/test123bla/#wow " - - // URL encoding but with spaces replace as + instead of %20 - wantReturnTo := "127.0.0.1%3A8000%2Ftest123bla%2F%23wow+++" - encode := WAYFEncode(returnTo) - if encode != wantReturnTo { - t.Fatalf("Got: %s, want: %s", encode, wantReturnTo) - } -} - func TestReplaceWAYF(t *testing.T) { // We expect url encoding but the spaces to be correctly replace with a + instead of a %20 // And we expect that the return to and org_id are correctly replaced |
