GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add `Diff` Fuzz Target by DaveLak · Pull Request #1914 · gitpython-developers/GitPython

Conversation

@DaveLak

@DaveLak DaveLak commented May 8, 2024

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@DaveLak
Add Diff Fuzz Target
a915adf
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
@DaveLak
Add corpus for new fuzz_diff.py fuzz target
315fec1
The `fuzz_diff` target is introduced in:
gitpython-developers/GitPython#1914
@DaveLak DaveLak mentioned this pull request May 8, 2024
Add corpus for new fuzz_diff.py fuzz target gitpython-developers/qa-assets#4
Merged
@DaveLak
Read class properties & call methods to cover more features
989ae1a
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.
Byron
Byron approved these changes May 9, 2024
View reviewed changes

@Byron Byron left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this 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!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Byron
Byron merged commit 4e212c6 into gitpython-developers:main May 9, 2024
@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

Reviewers

@Byron Byron Byron approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@DaveLak @Byron
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.