Skip to content

Added derive for arbitrary#2193

Draft
LucaCappelletti94 wants to merge 1 commit intoapache:mainfrom
LucaCappelletti94:arbitrary
Draft

Added derive for arbitrary#2193
LucaCappelletti94 wants to merge 1 commit intoapache:mainfrom
LucaCappelletti94:arbitrary

Conversation

@LucaCappelletti94
Copy link
Contributor

Adds Arbitrary derives to all AST structs and enums for property-based testing and fuzzing.

Changes

  • Added arbitrary as optional dependency with feature gating
  • Derived Arbitrary on all public AST types in ast
  • Added Arbitrary to core types (Token, Span, Location, etc.)
  • Excluded display helpers and iterators

Note: BigDecimal (used in Value::Number) lacks Arbitrary support. PR submitted: akubera/bigdecimal-rs#163

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.

1 participant