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

How can Luacov generate the coverage of function and coverage of branch? #113

Open
LamberttLiu opened this issue Nov 13, 2024 · 0 comments

Comments

@LamberttLiu
Copy link

we use Lucov to calculate the projetc code coverage,and generate the report files, just like:

==============================================================================
Summary
==============================================================================

File                                               Hits Missed Coverage
-----------------------------------------------------------------------
/home/AGS/lualib/resty/core/base.lua        1    118    0.84%
/home/AGS/nginx/LuaSrc/common/crcmethod.lua 33   5      86.84%
/home/AGS/nginx/LuaSrc/ut/handle.lua        1    10     9.09%
/home/AGS/nginx/LuaSrc/ut/test.lua          4    8      33.33%
-----------------------------------------------------------------------
Total                                              39   141    21.67%

this coverage reporter seems just like a reporter about line coverage. So how do we get function coverage and branch coverage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant