Skip to content

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

Open
@LamberttLiu

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions