alexfertel / bulloak

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

feat: add support for specifying the contract name #27

Closed alexfertel closed 10 months ago

alexfertel commented 10 months ago

This PR brings two main changes:

Closes #3

Also, this PR adds integration tests.

codecov-commenter commented 10 months ago

Codecov Report

Merging #27 (f008810) into main (5904c07) will increase coverage by 0.3%. The diff coverage is 58.6%.

Additional details and impacted files | [Files Changed](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez) | Coverage Δ | | |---|---|---| | [src/cli.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL2NsaS5ycw==) | `0.0% <0.0%> (ø)` | | | [src/main.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL21haW4ucnM=) | `0.0% <0.0%> (ø)` | | | [src/scaffold/ast.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL3NjYWZmb2xkL2FzdC5ycw==) | `92.3% <ø> (ø)` | | | [src/scaffold/error.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL3NjYWZmb2xkL2Vycm9yLnJz) | `81.6% <ø> (ø)` | | | [src/scaffold/span.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL3NjYWZmb2xkL3NwYW4ucnM=) | `41.8% <ø> (ø)` | | | [src/scaffold/utils.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL3NjYWZmb2xkL3V0aWxzLnJz) | `93.1% <ø> (ø)` | | | [src/scaffold/parser.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL3NjYWZmb2xkL3BhcnNlci5ycw==) | `79.1% <90.9%> (ø)` | | | [src/scaffold/tokenizer.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL3NjYWZmb2xkL3Rva2VuaXplci5ycw==) | `93.4% <95.0%> (ø)` | | | [src/scaffold/emitter.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL3NjYWZmb2xkL2VtaXR0ZXIucnM=) | `99.1% <100.0%> (ø)` | | | [src/scaffold/mod.rs](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez#diff-c3JjL3NjYWZmb2xkL21vZC5ycw==) | `100.0% <100.0%> (ø)` | | | ... and [2 more](https://app.codecov.io/gh/alexfertel/bulloak/pull/27?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alexander+Gonz%C3%A1lez) | |