Skip to content

Commit

Permalink
Fix fuzzer fuzzing test
Browse files Browse the repository at this point in the history
  • Loading branch information
senier committed May 13, 2024
1 parent bf2ac27 commit 456d7db
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
17 changes: 17 additions & 0 deletions examples/fuzz_cobrafuzz/fuzz.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env -S python3 -O

import contextlib

from cobrafuzz.common import OutOfBoundsError
from cobrafuzz.main import CobraFuzz
from cobrafuzz.mutator import Mutator


@CobraFuzz
def fuzz(data: bytes) -> None:
with contextlib.suppress(OutOfBoundsError):
Mutator()._mutate(bytearray(data)) # noqa: SLF001


if __name__ == "__main__":
fuzz()
15 changes: 0 additions & 15 deletions tests/fuzz_fuzzer.py

This file was deleted.

1 change: 1 addition & 0 deletions tests/integration/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"aifc",
"bs",
"charset_normalizer",
"cobrafuzz",
"codeop",
"furl",
"htmlparser",
Expand Down

0 comments on commit 456d7db

Please sign in to comment.