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

Add function coverage to data model #822

Merged
merged 7 commits into from Aug 27, 2023

Conversation

Spacetown
Copy link
Member

This PR adds the function return counts and the block coverage to the internal data model and the internal JSON format.

Related #808

Add `returned` and `blocks` to the data model.
Block execution needs to be in %.
The test uses a throw to leave a function and the returned value is not
100%. In the JSON format the 3 called with 67% returned is evaluated to
2 returns.
@Spacetown Spacetown force-pushed the add_function_coverage_to_data_model branch from e142562 to 728ca2a Compare August 25, 2023 21:17
@codecov
Copy link

codecov bot commented Aug 26, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02% 🎉

Comparison is base (4259823) 95.64% compared to head (81c0075) 95.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #822      +/-   ##
==========================================
+ Coverage   95.64%   95.66%   +0.02%     
==========================================
  Files          41       41              
  Lines        4089     4108      +19     
  Branches      807      809       +2     
==========================================
+ Hits         3911     3930      +19     
  Misses        100      100              
  Partials       78       78              
Files Changed Coverage Δ
gcovr/formats/json/read.py 94.36% <ø> (ø)
gcovr/formats/json/write.py 96.73% <ø> (ø)
gcovr/tests/test_gcov_parser.py 100.00% <ø> (ø)
gcovr/coverage.py 97.17% <100.00%> (+0.01%) ⬆️
gcovr/formats/gcov/parser.py 97.70% <100.00%> (+0.03%) ⬆️
gcovr/formats/json/versions.py 100.00% <100.00%> (ø)
gcovr/merging.py 86.39% <100.00%> (+1.20%) ⬆️
gcovr/tests/test_args.py 99.04% <100.00%> (+<0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Spacetown Spacetown marked this pull request as ready for review August 27, 2023 18:58
@Spacetown Spacetown merged commit 349608d into gcovr:master Aug 27, 2023
26 checks passed
@Spacetown Spacetown deleted the add_function_coverage_to_data_model branch August 27, 2023 18:59
Spacetown added a commit to Spacetown/gcovr that referenced this pull request Aug 28, 2023
@Spacetown Spacetown removed this from the Upcoming release milestone Jan 26, 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.

None yet

1 participant