News for hackers. Stuff that matters.
Re:Why the world needs Haskell by _pmf_ on Wednesday July 10, 2013 @01:34AM (#6017653)
> It’s also why ruthless testing and 100% test coverage have become so important in mainstream languages. But even with 100% test coverage you can’t be sure that your code will work correctly if a function unexpectedly returns nil unless you’re also mocking things out or using fuzz testing.

You can write tests with 100% coverage that don't use a single assertion. Test coverage is a completely useless metric, but it is an easy one to measure and understand, which is why it is so popular in pseudo-QA and the management tier.

Re:Why the world needs Haskell by ghswa on Wednesday July 10, 2013 @03:03AM (#6017905)
I frequently see people talking about an unqualified "100% test coverage". Is it safe to assume in these cases that the author is referring to statement coverage[1] rather than something more stringent like decision coverage or even MC/DC?[2]

If we're talking about statement coverage then I agree that achieving 100% statement coverage then calling it a day really isn't as helpful as it might sound.

[1] https://en.wikipedia.org/wiki/Code_coverage#Basic_coverage_c...

[2] https://en.wikipedia.org/wiki/Code_coverage#Modified_conditi...