fix: make all structured input unbounded by default#301
Merged
Conversation
…ze::MAX Co-authored-by: camshaft <799311+camshaft@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update run function to default to unbounded entropy
Default to unbounded entropy for run() function
Nov 1, 2025
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.
When using
run()instead offor_each(), tests callany()to generate values on-demand. The defaultmax_lenof 4096 bytes artificially limited available entropy, causing coverage issues for larger test runs. This also causes problems for generator-based harnesses and isn't obvious from the code that the input is artificially constrained.This change, instead, defaults to only limiting input length for unstructured input i.e. byte slices. This should make things more predictable and is a better default. The
with_max_lenfunction is always there as a way to override.