From 4d26c8489b09acc98128715e9a2ed67558eb8105 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 6 Feb 2024 14:44:18 +0100 Subject: Util + OAuth: Delete internal OAuth implementation Preparing to move to github.com/jwijenbergh/eduoauth-go --- internal/util/util_test.go | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'internal/util/util_test.go') diff --git a/internal/util/util_test.go b/internal/util/util_test.go index 5e19f57..827fbe1 100644 --- a/internal/util/util_test.go +++ b/internal/util/util_test.go @@ -1,28 +1,6 @@ package util -import ( - "bytes" - "testing" -) - -func TestMakeRandomByteSlice(t *testing.T) { - random, randomErr := MakeRandomByteSlice(32) - if randomErr != nil { - t.Fatalf("Got: %v, want: nil", randomErr) - } - if len(random) != 32 { - t.Fatalf("Got length: %d, want length: 32", len(random)) - } - - random2, randomErr2 := MakeRandomByteSlice(32) - if randomErr2 != nil { - t.Fatalf("2, Got: %v, want: nil", randomErr) - } - - if bytes.Equal(random2, random) { - t.Fatalf("Two random byteslices are the same: %v, %v", random2, random) - } -} +import "testing" func TestReplaceWAYF(t *testing.T) { // We expect url encoding but the spaces to be correctly replace with a + instead of a %20 -- cgit v1.2.3