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 157540e commit 484856b
Show file tree
Hide file tree
Showing 2 changed files with 20 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
}
4 changes: 4 additions & 0 deletions tests/go/lookup_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {},
Expand Down

0 comments on commit 484856b

Please sign in to comment.