Jason Keene | 26 May 2012 00:31
Picon
Gravatar

branch coverage for ternary/guard/default

Hello,

Is there a tool that can do branch coverage testing of ternary/guard/default expressions. Eg:

'happy path' if mostly_true() else 1/0
mostly_true() or 1/0
mostly_false() and 1/0

So if the test suite doesn't hit the 1/0's then it will indicate partial coverage.  I'm new to branch coverage testing and testing python in general so sorry if this is a newb question.

Jason
_______________________________________________
testing-in-python mailing list
testing-in-python <at> lists.idyll.org
http://lists.idyll.org/listinfo/testing-in-python

Gmane