[TIP] branch coverage for ternary/guard/default

Jason Keene jasonkeene at gmail.com
Fri May 25 15:31:43 PDT 2012


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20120525/57e096e6/attachment.htm>

More information about the testing-in-python mailing list