Skip to content

Commit

Permalink
improve fuzzer
Browse files Browse the repository at this point in the history
Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>
  • Loading branch information
erikbaranowski committed Aug 30, 2023
1 parent 304bc1c commit 859d5fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scanner/identifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ func BenchmarkSanitizeIdentifier(b *testing.B) {
}
}

func FuzzTestSanitizeIdentifier(f *testing.F) {
func FuzzSanitizeIdentifier(f *testing.F) {
for _, tc := range sanitizeTestCases {
f.Add(tc.identifier)
}

f.Fuzz(func(t *testing.T, input string) {
newIdentifier, err := scanner.SanitizeIdentifier(input)
if input == "" {
Expand Down

0 comments on commit 859d5fb

Please sign in to comment.