Skip to content

Commit

Permalink
Test/moarrrrr (#65)
Browse files Browse the repository at this point in the history
* chore: added code cov report and zero address test

* test coverage report

* fix: removed redundant return statements that is unreachable

* fix: InvalidReturnSelector and name fallback

* Test/sig verification (#64)

* test: expectRevert permit expired

* test: covered InvalidSignature, EIP1271 contract wallet tests

* chore: ignore reports

* refactor: remove userZero

* chore: update snapshot

* chore: update gas snapshot

Co-authored-by: Edison <6057323+edison0x@users.noreply.github.com>
  • Loading branch information
zlace0x and edison0xyz authored Dec 13, 2022
1 parent ba92707 commit 67fc132
Show file tree
Hide file tree
Showing 12 changed files with 741 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/approveRenewableAndCall.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
85041
85020
Original file line number Diff line number Diff line change
@@ -1 +1 @@
108676
108767
2 changes: 1 addition & 1 deletion .forge-snapshots/executeMetaTransactionTransfer.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
75823
75914
2 changes: 1 addition & 1 deletion .forge-snapshots/transferFrom.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44431
43046
2 changes: 1 addition & 1 deletion .forge-snapshots/transferFromAndCall.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
52227
50821
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ artifacts/
cache_hardhat/
typechain-types/
.gas-snapshot
gas-snapshots/
gas-snapshots/
report/
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ Forge snapshot automatically captures selected function calls on `.forge-snapsho
forge test --gas-report >> .forge-snapshots/report.txt
```

### Test Coverage

```sh
forge coverage --report lcov
genhtml lcov.info -o report --branch-coverage
```

# Deployments

| Network | Contract | Address |
Expand Down
Loading

0 comments on commit 67fc132

Please sign in to comment.