Skip to content

Commit

Permalink
test/fuzz: run on mac and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Apr 4, 2024
1 parent e2d74ba commit 4e8c8fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ permissions:
jobs:
fuzz-ach:
name: Fuzz Metro2
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
timeout-minutes: 12

steps:
Expand Down
5 changes: 5 additions & 0 deletions test/fuzz/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,18 @@ func FuzzReader(f *testing.F) {
}

f.Validate()

f.String(true)
f.String(false)
})
}

func populateCorpus(f *testing.F) {
f.Helper()

err := filepath.Walk(filepath.Join("..", "testdata"), func(path string, info fs.FileInfo, _ error) error {
path = filepath.ToSlash(path)

if info.IsDir() {
return nil
}
Expand Down

0 comments on commit 4e8c8fd

Please sign in to comment.