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

Code coverage report in Github action is inaccurate #107

Open
mnemonikr opened this issue Feb 26, 2024 · 1 comment
Open

Code coverage report in Github action is inaccurate #107

mnemonikr opened this issue Feb 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mnemonikr
Copy link
Owner

From cargo llvm-cov --workspace

Filename                      Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sla/src/ffi/rust.rs                 8                 0   100.00%           3                 0   100.00%          24                 0   100.00%           0                 0         -
sla/src/ffi/sys.rs                 55                16    70.91%          49                13    73.47%          54                18    66.67%           0                 0         -
sla/src/opcodes.rs                226                21    90.71%          46                18    60.87%         221                19    91.40%           0                 0         -
sla/src/sleigh.rs                 175                54    69.14%          62                22    64.52%         436                55    87.39%           0                 0         -
src/emulator.rs                  1613               493    69.44%         169                10    94.08%        2604                96    96.31%           0                 0         -
src/mem.rs                        176                58    67.05%          34                 9    73.53%         379                82    78.36%           0                 0         -
src/processor.rs                   78                24    69.23%          19                 7    63.16%         136                21    84.56%           0                 0         -
sym/src/buf.rs                    127                20    84.25%          64                10    84.38%         283                53    81.27%           0                 0         -
sym/src/convert.rs                155                 9    94.19%          68                 0   100.00%         328                 3    99.09%           0                 0         -
sym/src/sym.rs                    497                67    86.52%         156                11    92.95%        1015                81    92.02%           0                 0         -
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                            3110               762    75.50%         670               100    85.07%        5480               428    92.19%           0                 0         -

From the Github Action:

Filename                      Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sla/src/ffi/rust.rs                 8                 8     0.00%           3                 3     0.00%          24                24     0.00%           0                 0         -
sla/src/ffi/sys.rs                 55                55     0.00%          49                49     0.00%          54                54     0.00%           0                 0         -
sla/src/opcodes.rs                226               225     0.44%          46                45     2.17%         221               220     0.45%           0                 0         -
sla/src/sleigh.rs                 175               162     7.43%          62                52    16.13%         436               416     4.59%           0                 0         -
src/emulator.rs                  1613               518    67.89%         169                13    92.31%        2604               135    94.82%           0                 0         -
src/mem.rs                        176                74    57.95%          34                14    58.82%         379               130    65.70%           0                 0         -
src/processor.rs                   78                78     0.00%          19                19     0.00%         136               136     0.00%           0                 0         -
sym/src/buf.rs                    127                85    33.07%          64                36    43.75%         283               167    40.99%           0                 0         -
sym/src/convert.rs                155                98    36.77%          68                40    41.18%         328               186    43.29%           0                 0         -
sym/src/sym.rs                    497               352    29.18%         156               108    30.77%        1015               629    38.03%           0                 0         -
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                            3110              1655    46.78%         670               379    43.43%        5480              2097    61.73%           0                 0         -
@mnemonikr
Copy link
Owner Author

mnemonikr commented Feb 26, 2024

May be worth moving to cargo llvm-cov in the Github action per #36 .

@mnemonikr mnemonikr added the bug Something isn't working label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant