alexfertel / bulloak

A Solidity test generator based on the Branching Tree Technique.
Apache License 2.0
225 stars 13 forks source link

bug: empty `.tree` files cause a panic #28

Closed mds1 closed 9 months ago

mds1 commented 10 months ago

To reproduce:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/mds/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bulloak-0.4.6/src/scaffold/parser.rs:202:58
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Bulloak should exit without panicking here, and should print an error similar to that when the contents of the .tree file are invalid