Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Feb 23, 2024
1 parent 8e329dc commit 08aaac6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions program-analysis/echidna/basic/testing-modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ Use dapptest mode if you are testing stateless invariants and the code will neve
## Other testing modes

Echidna allows other testing mode, which are less frecuently used:
* `overflow` mode: this mode is similar to `assertion` but it will only catch integer overflow (so no need to define any function with assertions). **It only works in solc 0.8.x or greater, for code outside `unchecked` blocks**.
* `optimization` mode: this mode allows to maximize the value returned by a function. It is explained in detail in [its own tutorial](../advanced/optimization_mode.md).
* `exploration` mode: this mode will not use any kind of invariants to check, allowing Echidna to collect coverage.


- `overflow` mode: this mode is similar to `assertion` but it will only catch integer overflow (so no need to define any function with assertions). **It only works in solc 0.8.x or greater, for code outside `unchecked` blocks**.
- `optimization` mode: this mode allows to maximize the value returned by a function. It is explained in detail in [its own tutorial](../advanced/optimization_mode.md).
- `exploration` mode: this mode will not use any kind of invariants to check, allowing Echidna to collect coverage.

## Stateless vs. Stateful

Any of these testing modes can be used, in either stateful (by default) or stateless mode (using `--seqLen 1`). In stateful mode, Echidna will maintain the state between each function call and attempt to break the invariants. In stateless mode, Echidna will discard state changes during fuzzing. There are notable differences between these two modes.
Expand Down

0 comments on commit 08aaac6

Please sign in to comment.