From 30fe43eb28a6eebc41dd4019b2701bd3f322917d Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Tue, 21 Feb 2023 15:56:45 +0000 Subject: [PATCH] Add info to readme --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9efc21e..9f7dd8c 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,14 @@ It contains [the interfaces](./src/interfaces) of the contracts to implement and The repository uses [Foundry](https://book.getfoundry.sh/projects/working-on-an-existing-project). -Coverage generated using `forge coverage --report lcov && genhtml lcov.info -o coverage --branch-coverage --function-coverage --legend --title "TicketNFT Coverage"` +Coverage generated using `rm -rf coverage/* && forge coverage --report lcov && genhtml lcov.info -o coverage --branch-coverage --function-coverage --legend --title "TicketNFT Coverage" && rm lcov.info` + +`TicketNFT` coverage report is located [here](./coverage/src/contracts/TicketNFT.sol.gcov.html). Coverage for the `TicketNFT` contract is: + +| Statistic | Hit | Total | % | +| --------- | --- | ----- | ----- | +| Lines | 71 | 71 | 100.0 | +| Functions | 14 | 14 | 100.0 | +| Branches | 52 | 52 | 100.0 | + +Primary Market Limit test uses a foundry cheat code to set the `totalSupply` storage cell to 999, followed by a successful and then a failing purchase.