Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Error: NaN is less than min_coverage 95 - Unexpected NaN coverage value #146

@Archie-Elvie

Description

@Archie-Elvie

Describe the bug
While running the action it reports NaN coverage, while lcov it self reports 100%.

Reading tracefile code-coverage/lcov.info
            |Lines       |Functions  |Branches    
Filename    |Rate     Num|Rate    Num|Rate     Num
==================================================
[/workspaces/project/src/]
bar.cpp     | 100%      4| 100%     2|    -      0
==================================================
      Total:| 100%      4| 100%     2|    -      0

To Reproduce
Steps to reproduce the behaviour:

Use the following lcov.info

lcov.info

TN:
SF:/__w/project/project/src/bar.cpp
FN:3,_Z8set_gpioPK6devicehi
FNDA:2,_Z8set_gpioPK6devicehi
FN:8,_Z3addii
FNDA:2,_Z3addii
DA:3,2
DA:5,2
DA:8,2
DA:10,2
end_of_record

Expected behavior
It reports 100% and passes

Screenshots
None

Additional context
None

Let me know if you need more information.

Metadata

Metadata

Assignees

Labels

won't fixThis will not be worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions