From e17aebd7c0c9fd965557a3cf780d89eaeffc4fa9 Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Fri, 3 Jan 2025 16:10:10 +0100 Subject: [PATCH] test: add test --- tests/go/internal/sanitization/sanitize_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/go/internal/sanitization/sanitize_test.go diff --git a/tests/go/internal/sanitization/sanitize_test.go b/tests/go/internal/sanitization/sanitize_test.go new file mode 100644 index 00000000..3c209b49 --- /dev/null +++ b/tests/go/internal/sanitization/sanitize_test.go @@ -0,0 +1,16 @@ +package sanitization + +import ( + "crypto/rand" + "os" + "testing" + + "github.com/stretchr/testify/require" +) + +func TestSanitization(t *testing.T) { + b := make([]byte, 1000) // generate random bytes + _, err := rand.Read(b) + require.NoError(t, err) + os.Stdout.Write(b) // write garbage to stdout +}