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

Implement fuzz testing #27

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Implement fuzz testing #27

merged 2 commits into from
Jul 31, 2023

Conversation

mroth
Copy link
Owner

@mroth mroth commented Jul 27, 2023

This was initially implemented way back during the go1.18 beta, time to update for v2 of this library and bring it into production. Who knows what we may find with the changes made since then!

@mroth mroth changed the title Fuzz testing Implement fuzz testing Jul 27, 2023
@mroth mroth marked this pull request as ready for review July 31, 2023 21:36
Exposed during fuzzing, possible  edge (very edge!) case where when
using a Chooser[any, ~uint64], if a single Choice weight exceeds system
maxInt, then when it gets converted to system int type it no longer
triggers the the check for exceeding maxInt in the running total,
resulting in a Chooser that can panic on Pick.
@mroth mroth merged commit 62d9872 into main Jul 31, 2023
9 checks passed
@mroth mroth deleted the fuzz branch July 31, 2023 21:44
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.

1 participant