E859 Add function coverage to coveralls and HTML report by Spacetown · Pull Request #975 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add function coverage to coveralls and HTML report #975

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

Merged
merged 8 commits into from
Sep 30, 2024

Conversation

Spacetown
Copy link
Member
@Spacetown Spacetown commented Sep 29, 2024

Add function level coverage to coveralls and HTML report. This is only available if gcov JSON intermediate format version 2 is used (available since gcc-14).

Closes #654

Both are now mandatory arguments to show clearly where the information
is missing. If mangled name is available use it as dict key instead of
the demangled name because for a virtual function there are two entrie
with same demangled name in gcov JSON outout:

```
                {
                    "name": "_ZN3BarD0Ev",
                    "demangled_name": "Bar::~Bar()",
                    "start_line": 9,
                    "start_column": 13,
                    "end_line": 10,
                    "end_column": 6,
                    "blocks": 3,
                    "blocks_executed": 0,
                    "execution_count": 0
                },
                {
                    "name": "_ZN3BarD2Ev",
                    "demangled_name": "Bar::~Bar()",
                    "start_line": 9,
                    "start_column": 13,
                    "end_line": 10,
                    "end_column": 6,
                    "blocks": 1,
                    "blocks_executed": 1,
                    "execution_count": 1
                },
````
Copy link
codacy-production bot commented Sep 29, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.02% (target: -1.00%) (target: 95.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (2375572) 4146 4055 97.81%
Head commit (98abd77) 4176 (+30) 4085 (+30) 97.82% (+0.02%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#975) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@Spacetown Spacetown merged commit 97e51f1 into gcovr:main Sep 30, 2024
34 checks passed
@Spacetown Spacetown deleted the add_function_coverage branch September 30, 2024 05:15
@Spacetown Spacetown removed this from the Upcoming release milestone Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method level coverage in the xml generated
1 participant
0