-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Lcov report improvements part 2 #1851
Lcov report improvements part 2 #1851
Commits on Sep 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0f3b227 - Browse repository at this point
Copy the full SHA 0f3b227View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cc8fd0 - Browse repository at this point
Copy the full SHA 9cc8fd0View commit details
Commits on Sep 24, 2024
-
[lcov] Refactor LcovReporter.lcov_file
Split the bulk of the code in LcovReporter.lcov_file out into two free helper functions, lcov_lines and lcov_arcs. This is easier to read and will make it easier to do future planned changes in a type-safe manner. No functional changes in this commit.
Configuration menu - View commit details
-
Copy full SHA for e72cb37 - Browse repository at this point
Copy the full SHA e72cb37View commit details -
[lcov] Improve reporting of branch destinations.
The branch field of a BRDA: record can be an arbitrary textual label. Therefore, instead of emitting meaningless numbers, emit the string “to line <N>” for ordinary branches (where <N> is the arc destination line, and “to exit” for branches that exit the function. When there is more than one exit arc from a single line, provide the negated arc destination as a disambiguator. Thanks to Henry Cox (@henry2cox), one of the LCOV maintainers, for clarifying the semantics of BRDA: records for us.
Configuration menu - View commit details
-
Copy full SHA for f45f2fa - Browse repository at this point
Copy the full SHA f45f2faView commit details -
Implement function coverage reporting in lcov reports.
Quite straightforward: a function has been executed if any of its region’s lines have been executed.
Configuration menu - View commit details
-
Copy full SHA for 8c62e38 - Browse repository at this point
Copy the full SHA 8c62e38View commit details -
[lcov] Ignore vacuous function regions.
Should fix the test failures with pypy pretending to be python 3.8.
Configuration menu - View commit details
-
Copy full SHA for db57977 - Browse repository at this point
Copy the full SHA db57977View commit details -
Adjust test expectations for lcov reports generated under PyPy 3.8.
There is a bug somewhere, in which if we collect data in --branch mode under PyPy 3.8, regions for top-level functions come out of the analysis engine with empty lines arrays. The previous commit prevented this from crashing the lcov reporter; this commit adjusts the tests of the lcov reporter so that we expect the function records affected by the bug to be missing. I don’t think it’s worth trying to pin down the cause of the bug, since Python 3.8 is approaching end-of-life for both CPython and PyPy.
Configuration menu - View commit details
-
Copy full SHA for 13059ee - Browse repository at this point
Copy the full SHA 13059eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 837bc7e - Browse repository at this point
Copy the full SHA 837bc7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 228854a - Browse repository at this point
Copy the full SHA 228854aView commit details -
Revise lcovreport.lcov_arcs using the new arc_description API.
Doesn’t quite work yet, see discussion in nedbat#1850.
Configuration menu - View commit details
-
Copy full SHA for d767721 - Browse repository at this point
Copy the full SHA d767721View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 24b21d1 - Browse repository at this point
Copy the full SHA 24b21d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6c26f2 - Browse repository at this point
Copy the full SHA a6c26f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77ee8f2 - Browse repository at this point
Copy the full SHA 77ee8f2View commit details
Commits on Oct 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b7d298a - Browse repository at this point
Copy the full SHA b7d298aView commit details -
Use tests.helpers.xfail_pypy38 for lcov tests that fail with pypy 3.8.
This replaces the custom fn_coverage_missing_in_pypy_38 logic that was used in earlier commits.
Configuration menu - View commit details
-
Copy full SHA for f90ef28 - Browse repository at this point
Copy the full SHA f90ef28View commit details -
tests: split xfail_pypy38 decorator into _older_ and _all_ variants
The lcov output tests that are affected by bugs in PyPy 3.8, fail with the current version of PyPy 3.8 (7.3.11), unlike the other tests annotated with @xfail_pypy38. Split this decorator into two variants, xfail_older_pypy38 (used for all the tests that were labeled xfail_py38 prior to this patchset) and xfail_all_pypy38 (used for the lcov output tests).
Configuration menu - View commit details
-
Copy full SHA for e6a79ae - Browse repository at this point
Copy the full SHA e6a79aeView commit details