Skip to content

test: add fuzz testing using hypothesis#57

Open
sumanjeet0012 wants to merge 2 commits into
multiformats:masterfrom
sumanjeet0012:fix-issue-43
Open

test: add fuzz testing using hypothesis#57
sumanjeet0012 wants to merge 2 commits into
multiformats:masterfrom
sumanjeet0012:fix-issue-43

Conversation

@sumanjeet0012

Copy link
Copy Markdown
Contributor

Fixes #43

Description

This pull request introduces fuzz testing for the py-multibase decoder. It implements the fuzz target using hypothesis to exercise the decode pipeline with random binary, string, and encoded permutations to ensure the package handles malformed input safely without crashing.

Changes

  • Installed hypothesis as a development dependency in pyproject.toml.
  • Added tests/test_fuzz.py containing:
    • test_decode_never_crashes
    • test_decode_string_never_crashes
    • test_roundtrip_never_crashes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No fuzz testing for decode()

1 participant