Is there any tool/library that calculate percent of \"condition/decision coverage\" of python code. I found only coverage.py but it calculates only percent of \"statement covera
Parse and modify the AST is the right answer, IMHO. See this paper
for a complete description of what you need to do:
"Branch Coverage Made Easy for Arbitrary Languages"