HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by anotherhue | Hacker News Reader
Parent
Full thread
anotherhue
·
I was confused also but decided they meant if/else branching
View on HN
abdusco
·
Maybe the author means something else. How else could you hit 100% of the lines if you're not covering all branches.
morelisp
·
if (a || b) { ... }
Branch coverage means testing a = true, b = anything; and a = false, b = true; and a = false, b = false.
Reply on news.ycombinator.com