fuzz test archive round trip and reading #30
Merged
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 adds a fuzz target to be run via
cargo +nightly fuzz run roundtrip
.Currently the archive builder does not have a strategy to handle invalid inputs, so I have manually excluded them for now and marked them with
TODO
. For example, values that are too large could be rejected by the builder, or simply truncated like the command linear
tool does (#29).Even so, the fuzzer very quickly finds round trip errors. Example invocation:Update: That was due to long identifiers. Now appears to be a working a working baseline.