Skip to content

Commit

Permalink
test(fuzz): appease goimports by renaming added .go corpus files to *…
Browse files Browse the repository at this point in the history
…go_fuzz (#3602)

goimports doesn't provide an ignore pattern except by reading the
$GOPATH/.goimportsignore which would be too cumbersome and non-standard
to muck around with so instead this change modifies testdata/corpra/*.go
to testdata/corpora/*.go_fuzz so that goimports won't throw a fit
against CI/CD for this project.

Fixes #3601
  • Loading branch information
odeke-em authored Jan 24, 2025
1 parent 8e1c532 commit 98c4353
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnovm/pkg/gnolang/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func FuzzConvertUntypedBigdecToFloat(f *testing.F) {

func FuzzParseFile(f *testing.F) {
// 1. Add the corpra.
parseFileDir := filepath.Join("testdata", "corpra", "parsefile")
paths, err := filepath.Glob(filepath.Join(parseFileDir, "*.go"))
parseFileDir := filepath.Join("testdata", "corpora", "parsefile")
paths, err := filepath.Glob(filepath.Join(parseFileDir, "*.go_fuzz"))
if err != nil {
f.Fatal(err)
}
Expand Down

0 comments on commit 98c4353

Please sign in to comment.