Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
- Correct an issue with type-coverage calculation

Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
  • Loading branch information
mballance committed Jul 4, 2022
1 parent 3a56001 commit 207076a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions doc/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

## 0.1.0
- Correct an issue with type-coverage calculation

## 0.0.9
- Adjust dependencies

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
from setuptools import setup, find_namespace_packages

version="0.0.9"
version="0.1.0"

if "BUILD_NUM" in os.environ.keys():
version = version + "." + os.environ["BUILD_NUM"]
Expand Down
8 changes: 4 additions & 4 deletions src/ucis/report/coverage_report_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ def build_covergroup(self, cg_n)->CoverageReport.Covergroup:
coverage += cr.coverage * cr.weight
div += cr.weight

for cg in cg_r.covergroups:
coverage += cg.coverage * cg.weight
div += cg.weight
# for cg in cg_r.covergroups:
# coverage += cg.coverage * cg.weight
# div += cg.weight

if div > 0: coverage /= div

cg_r.coverage = coverage
Expand Down

1 comment on commit 207076a

@eyck
Copy link
Contributor

@eyck eyck commented on 207076a Jul 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the type coverage calculation competely disabled?

Please sign in to comment.