In my coverage_data, some class_data['lines'][line_number] just like this:
{'branch-conditions-covered': 0, 'branch-conditions-total': 2, 'branch': 'true'}
This line could not be parsed correctly.
But this one is ok:
{'hits': '0', 'branch-conditions-covered': 0, 'branch-conditions-total': 0, 'branch': 'false'}
I've got this exception KeyError: 'hits'
In my coverage_data, some class_data['lines'][line_number] just like this:
{'branch-conditions-covered': 0, 'branch-conditions-total': 2, 'branch': 'true'} This line could not be parsed correctly. But this one is ok: {'hits': '0', 'branch-conditions-covered': 0, 'branch-conditions-total': 0, 'branch': 'false'}