Skip to content

feat(cheatcodes): support native bound cheatcode #8788

@grandizzy

Description

@grandizzy

Component

Forge

Describe the feature you would like

see convo foundry-rs/forge-std#584 (comment)

Additional context

/// forge-config: default.fuzz.range.y = [1, 10];
function testFoo(uint256 x, uint256 y) public {

and pass the min / max bound values to UintStrategy/IntStrategy

  • tests should make sure that, if fuzzing over a large space, logarithmic uniformity is preferred, whereas if fuzzing a uint8 then standard uniform sampling is preferred

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions