Add comprehensive fuzz testing infrastructure with cargo-fuzz#309
Draft
Copilot wants to merge 3 commits into
Draft
Add comprehensive fuzz testing infrastructure with cargo-fuzz#309Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Co-authored-by: yegor256 <526301+yegor256@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] we don't use fuzz testing
Add comprehensive fuzz testing infrastructure with cargo-fuzz
Jun 10, 2025
Owner
|
@owtotwo what do you think about this contribution, from AI? |
Owner
|
@copilot thanks for your contribution, but you broke a few CI pipelines. Please, fix your code to make them pass. |
Co-authored-by: yegor256 <526301+yegor256@users.noreply.github.com>
Contributor
Author
Fixed the CI pipeline failures. The issue was missing SPDX copyright headers in the fuzz test files. Added proper headers and updated REUSE.toml configuration. All CI checks now pass. (dc47794) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds comprehensive fuzz testing capabilities to the micromap crate using cargo-fuzz, significantly improving test coverage and helping ensure the highest possible quality for our tests.
What's Added
Three Comprehensive Fuzz Targets
map_operations- Tests fundamental Map operations:u8keys/values with capacity 16set_operations- Tests Set operations:is_disjoint,is_subset,is_supersetu8values with capacity 16edge_cases- Tests complex scenarios:u16keys/values for broader input spaceDocumentation
fuzz/README.mdwith usage instructionsREADME.mdwith fuzz testing sectionUsage
Benefits
The fuzz targets have already been tested and successfully explore many code paths, providing confidence in the robustness of the micromap implementation.
Fixes #299.