Skip to content

test: add Hypothesis fuzz tests for prefix and Code parsing - #55

Open
acul71 wants to merge 1 commit into
masterfrom
issue-48
Open

test: add Hypothesis fuzz tests for prefix and Code parsing#55
acul71 wants to merge 1 commit into
masterfrom
issue-48

Conversation

@acul71

@acul71 acul71 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #48.

  • Add hypothesis to [project.optional-dependencies].dev
  • Add tests/test_fuzz.py so extract_prefix, get_codec, Code.from_string, and is_codec never crash on random input
  • Note: this PR also touches pyproject.toml; may need a trivial rebase if Add benchmark tests for core operations #45 lands first
  • Add newsfragment 48.misc.rst

Demo

....                                                                     [100%]
4 passed in 0.20s

Test plan

  • make lint / typecheck / test / docs-ci locally
  • Newsfragment 48.misc.rst present
  • CI green on this PR
  • Review requested from @sumanjeet0012

Made with Cursor

Closes #48.

Co-authored-by: Cursor <cursoragent@cursor.com>
@acul71

acul71 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

@sumanjeet0012 Could you please review this PR when you have a chance? Thanks!

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.

Add fuzz testing for prefix operations and Code parsing

1 participant