diff options
author | Ian Moore <ianmoore@google.com> | 2023-03-13 23:24:25 +0000 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-14 05:55:25 -0400 |
commit | f0a8b6ffe07b24398ab01b2fb8654572966fa5f4 (patch) | |
tree | 95993cd0e1eba5cf6388e6ba38140851ca60e0ae /coverage/lcovreport.py | |
parent | 28aa7bed088c4a01797faba5f152f6a323b2544c (diff) | |
download | python-coveragepy-git-f0a8b6ffe07b24398ab01b2fb8654572966fa5f4.tar.gz |
Fix lcov coverage
Diffstat (limited to 'coverage/lcovreport.py')
-rw-r--r-- | coverage/lcovreport.py | 4 |
1 files changed, 2 insertions, 2 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() |