Skip to content

Commit

Permalink
Remove testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra committed Jan 31, 2025
1 parent b8d60fa commit a5dd6af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions parrot/parrot.go
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ func isValidMethod(method string) bool {
http.MethodPatch,
http.MethodDelete,
http.MethodOptions,
http.MethodConnect,
http.MethodTrace,
MethodAny:
return true
}
Expand Down
4 changes: 3 additions & 1 deletion parrot/parrot_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ func FuzzMethodAny(f *testing.F) {
f.Add(http.MethodPatch)
f.Add(http.MethodDelete)
f.Add(http.MethodOptions)
f.Add(http.MethodConnect)
f.Add(http.MethodTrace)

f.Fuzz(func(t *testing.T, method string) {
if !isValidMethod(method) {
t.Skip("invalid method")
t.Skipf("invalid method '%s'", method)
}
resp, err := p.Call(method, route.Path)
require.NoError(t, err)
Expand Down
2 changes: 0 additions & 2 deletions parrot/testdata/fuzz/FuzzMethodAny/771e938e4458e983

This file was deleted.

0 comments on commit a5dd6af

Please sign in to comment.