Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve test coverage #7

Open
dcposch opened this issue Nov 5, 2022 · 0 comments
Open

Improve test coverage #7

dcposch opened this issue Nov 5, 2022 · 0 comments

Comments

@dcposch
Copy link
Owner

dcposch commented Nov 5, 2022

Those are rookie numbers

Before

+-----------------------+------------------+------------------+----------------+----------------+
| File                  | % Lines          | % Statements     | % Branches     | % Funcs        |
+===============================================================================================+
| script/Deploy.s.sol   | 0.00% (0/7)      | 0.00% (0/6)      | 0.00% (0/2)    | 0.00% (0/1)    |
|-----------------------+------------------+------------------+----------------+----------------|
| src/BtcMirror.sol     | 94.87% (74/78)   | 96.15% (100/104) | 57.41% (31/54) | 100.00% (8/8)  |
|-----------------------+------------------+------------------+----------------+----------------|
| src/BtcProofUtils.sol | 79.55% (70/88)   | 78.10% (82/105)  | 44.12% (15/34) | 77.78% (7/9)   |
|-----------------------+------------------+------------------+----------------+----------------|
| src/BtcTxVerifier.sol | 100.00% (6/6)    | 100.00% (8/8)    | 66.67% (4/6)   | 100.00% (1/1)  |
|-----------------------+------------------+------------------+----------------+----------------|
| src/Endian.sol        | 68.42% (13/19)   | 68.42% (13/19)   | 100.00% (0/0)  | 50.00% (2/4)   |
|-----------------------+------------------+------------------+----------------+----------------|
| Total                 | 82.32% (163/198) | 83.88% (203/242) | 52.08% (50/96) | 78.26% (18/23) |
+-----------------------+------------------+------------------+----------------+----------------+

Goal

Excluding the deploy script,

  • 100% function coverage
  • 100% statement coverage
  • 100% branch coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant