-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude fuzz testing from pre-1.18 toolchains
- Loading branch information
1 parent
a8f0586
commit 46e2a5c
Showing
2 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//go:build go1.18 | ||
// +build go1.18 | ||
|
||
package ics | ||
|
||
import ( | ||
"bytes" | ||
"os" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func FuzzParseCalendar(f *testing.F) { | ||
ics, err := os.ReadFile("testdata/timeparsing.ics") | ||
require.NoError(f, err) | ||
f.Add(ics) | ||
f.Fuzz(func(t *testing.T, ics []byte) { | ||
_, err := ParseCalendar(bytes.NewReader(ics)) | ||
t.Log(err) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters