You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the source code file is larger than 10K lines the .gcov format appears to drop the space between %%%%%: and the line number. This causes _RE_BLOCK_LINE to not match since it requires the space to be present.
Slightly redacted .gcov extract:
%%%%%: 9998-block 1
call 6 never executed
#####: 9999: child_->set_access([...]);
call 0 never executed
branch 1 never executed (fallthrough)
branch 2 never executed (throw)
#####:10000: setReadAccess(*child_);
%%%%%:10000-block 0
call 0 never executed
branch 1 never executed (fallthrough)
branch 2 never executed (throw)
#####:10001: child_ = child_->add_child([...]);
%%%%%:10001-block 0
To Reproduce
Steps to reproduce the behavior:
Generate coverage data for a file with at least 10000 lines of code
I have a small patch for this at work, but I don't know how long it will take to get approval to upstream it. I'll leave it up to you whether you want to fix it yourself or wait for a PR.
I have a small patch for this at work, but I don't know how long it will take to get approval to upstream it. I'll leave it up to you whether you want to fix it yourself or wait for a PR.
I know this. The first contribution to glove I did in my spare time 😆, now you see the result.
Describe the bug
When the source code file is larger than 10K lines the .gcov format appears to drop the space between %%%%%: and the line number. This causes _RE_BLOCK_LINE to not match since it requires the space to be present.
Slightly redacted .gcov extract:
To Reproduce
Steps to reproduce the behavior:
gcovr.formats.gcov.parser.UnknownLineType: %%%%%:10000-block 0
Expected behavior
_RE_BLOCK_LINE should matches lines 10000 and later
Desktop (please complete the following information):
Additional context
When I deleted the .gcno file for the large .cpp file the report for the other files was generated successfully
The text was updated successfully, but these errors were encountered: