Skip to content

Commit

Permalink
Fix lcov coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
imoore76 authored and nedbat committed Mar 14, 2023
1 parent 28aa7be commit f0a8b6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions coverage/lcovreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def get_lcov(self, fr: FileReporter, analysis: Analysis, outfile: IO[str]) -> No
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()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_lcov.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_empty_init_files(self) -> None:
SF:__init__.py
DA:1,1,1B2M2Y8AsgTpgAmY7PhCfg
LF:0
LH:1
LH:0
BRF:0
BRH:0
end_of_record
Expand Down

0 comments on commit f0a8b6f

Please sign in to comment.