Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jan 3, 2025
1 parent 20e5971 commit e17aebd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/go/internal/sanitization/sanitize_test.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit e17aebd

Please sign in to comment.