Skip to content

Shrinking optimization: check what part of RandomRun did a generator use #232

Description

@Janiczek

This idea is courtesy of @CoderDennis - thanks!

When a shrunk RandomRun is tried, and succeeds in generating a test-failing value, remove the unused suffix of the RandomRun value (it would have to be cleaned up with further ShrinkCmds later otherwise). Return only the used part of the RandomRun as the new best shrink.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions