summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coverage/lcovreport.py4
-rw-r--r--tests/test_lcov.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/coverage/lcovreport.py b/coverage/lcovreport.py
index 5a84f0f2..1789c17e 100644
--- a/coverage/lcovreport.py
+++ b/coverage/lcovreport.py
@@ -81,8 +81,8 @@ class LcovReporter:
hashed = base64.b64encode(md5(line).digest()).decode().rstrip("=")
outfile.write(f"DA:{missed},0,{hashed}\n")
- outfile.write(f"LF:{len(analysis.statements)}\n")
- outfile.write(f"LH:{len(analysis.executed)}\n")
+ outfile.write(f"LF:{analysis.numbers.n_statements}\n")
+ outfile.write(f"LH:{analysis.numbers.n_executed}\n")
# More information dense branch coverage data.
missing_arcs = analysis.missing_branch_arcs()
diff --git a/tests/test_lcov.py b/tests/test_lcov.py
index 30065a8d..6d50b62b 100644
--- a/tests/test_lcov.py
+++ b/tests/test_lcov.py
@@ -286,7 +286,7 @@ class LcovTest(CoverageTest):
SF:__init__.py
DA:1,1,1B2M2Y8AsgTpgAmY7PhCfg
LF:0
- LH:1
+ LH:0
BRF:0
BRH:0
end_of_record