From e9f8db8ee8fccf60e58deb1d72766f94a053bb16 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 28 Nov 2022 11:18:14 +0100 Subject: 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 --- internal/util/util_test.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'internal/util/util_test.go') 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 -- cgit v1.2.3