eigerco / move-spec-testing

Other
0 stars 1 forks source link

chore(move-mutator): improve single file err handling #8

Closed Rqnsom closed 1 month ago

Rqnsom commented 1 month ago

Single files can be mutated only if the files require no deps or address name resolving - in those cases we should printout a proper error in the output.

An example:

$ ./target/release/move-mutator -m move-mutator/tests/move-assets/simple/sources/Sum.move
error: address with no value
  ┌─ move-mutator/tests/move-assets/simple/sources/Sum.move:1:8
  │
1 │ module TestAccount::Sum {
  │        ^^^^^^^^^^^ address 'TestAccount' is not assigned a value. Try assigning it a value when calling the compiler

Error: AST generation failed