Skip to content

Complement Hypothesis' constants-collection by generating regex-matches for r"strings" #243

@Zac-HD

Description

@Zac-HD

This would be rather annoying to do in Hypothesis itself, but in Hypofuzz we can go somewhat further than would otherwise be reasonable.

The r" prefix isn't explicitly represented in the AST, but with linenos and start-colnos we can read a slice from the filecache to check, for short strings which are valid regex patterns - it's not too expensive I think.

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