Skip to content
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

ZeroDivisionError no coverage captured #27

Open
edcote opened this issue Oct 5, 2022 · 0 comments
Open

ZeroDivisionError no coverage captured #27

edcote opened this issue Oct 5, 2022 · 0 comments

Comments

@edcote
Copy link

edcote commented Oct 5, 2022

Traceback (most recent call last):                                                                                   
  File "/google/src/cloud/ecote/rdo1/google3/third_party/fc4sc/tools/coverage_report/report.py", line 210, in <module>                                                                                                                     
    d = parser.get_report_data(args.xml_report)                                                                                                                                                                                            
  File "/google/src/cloud/ecote/rdo1/google3/third_party/fc4sc/tools/coverage_report/report.py", line 29, in get_report_data                                                                                                               
    self.get_covergroup_report_data(covergroupCoverage, module_data)                                                                                                                                                                       
  File "/google/src/cloud/ecote/rdo1/google3/third_party/fc4sc/tools/coverage_report/report.py", line 51, in get_covergroup_report_data                                                                                                    
    cg_data['pct_cov'] = sum([cp['pct_cov'] * cp['weight'] for cp in cg_data['inst_data'].values()]) \                                                                                                                                     
ZeroDivisionError: float division by zero                                                                                                                                                                                                  

cg_inst['inst_data'] could contain elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant