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

Add size_hint methods to Arbitrary impls #1239

Merged
merged 1 commit into from Nov 21, 2023

Conversation

brson
Copy link
Contributor

@brson brson commented Nov 20, 2023

What

Add size_hint methods to Arbitrary impls.

Why

It should make fuzzers more effective at producing arbitrary input, particularly in cases where these types are included in structs or collections.

Known limitations

Note that the impl Arbitrary for Symbol doesn't need an implementation - the default (0, None) is appropriate.

Closes stellar/rs-soroban-sdk#1147

@brson brson requested a review from a team as a code owner November 20, 2023 23:58
@graydon graydon added this pull request to the merge queue Nov 21, 2023
Merged via the queue into stellar:main with commit 201a09d Nov 21, 2023
9 of 10 checks passed
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.

Implement Arbitrary::size_hint for hand-implemented types
2 participants