Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Diff Fuzz Target #1914

Merged
merged 2 commits into from May 9, 2024
Merged

Conversation

DaveLak
Copy link
Contributor

@DaveLak DaveLak commented May 8, 2024

Adds a new fuzz_diff.py fuzz target that covers Diff class initialization using fuzzed data.

Local test run stats:

#46050	DONE   cov: 308 ft: 338 corp: 8/241b lim: 499 exec/s: 51 rss: 86Mb
Done 46050 runs in 901 second(s)
stat::number_of_executed_units: 46050
stat::average_exec_per_sec:     51
stat::new_units_added:          2
stat::slowest_unit_time_sec:    0
stat::peak_rss_mb:              86

Adds a new `fuzz_diff.py` fuzz target that covers `Diff` class
initialization using fuzzed data.
DaveLak added a commit to gitpython-developers/qa-assets that referenced this pull request May 8, 2024
Property access and private methods on the `Diff` class are complex and
involve encoding and decoding operations that warrant being tested.

This test borrows its design from the `test_diff.py` unit test file.
Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, looks good to me!

@Byron Byron merged commit 4e212c6 into gitpython-developers:main May 9, 2024
26 checks passed
@DaveLak DaveLak deleted the add-diff-fuzz-target branch May 9, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants