Skip to content

Use the size_hint method of Arbitrary to more intelligently pick the input size. #2

Description

@brson

Most users are going to use the default arb function, with an input size of 256; and in cases that is insufficent, will silently get low-quality test inputs because many/most Arbitrary impls allow short inputs, treating them as 0-padded up to the needed length (I think I recall this).

And picking the correct byte length to fully satisfy any particular Arbitrary impl, calling arb-sized is not really reasonable for most people.

The default method could more intellegently use the Arbitrary::size_hint method to pick an input size.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions