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 +} diff --git a/tests/go/lookup_spec.lua b/tests/go/lookup_spec.lua index cc34c65e..8930292e 100644 --- a/tests/go/lookup_spec.lua +++ b/tests/go/lookup_spec.lua @@ -19,6 +19,10 @@ describe("Lookup", function() package = "positions", replacements = {}, }, + [folderpath .. "/internal/sanitization/sanitize_test.go"] = { + package = "sanitization", + replacements = {}, + }, [folderpath .. "/internal/subpackage/subpackage2/subpackage2_test.go"] = { package = "subpackage2", replacements = {},