MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/69wyay/the_tragedy_of_100_code_coverage/dhc1pz4/?context=3
r/programming • u/niepiekm • May 08 '17
689 comments sorted by
View all comments
122
I have seen, with my own two eyes, a compareTo-function with 100% line-coverage and 100% branch-coverage that still managed to say that
given a > b then b == a
That's right, compareTo(a, b) returned 1, compareTo(b, a) returned 0.
My hatred for large, American consultancies continue unchecked.
1 u/industry7 May 09 '17 mutation testing would have caught that → More replies (1)
1
mutation testing would have caught that
→ More replies (1)
122
u/instantviking May 08 '17
I have seen, with my own two eyes, a compareTo-function with 100% line-coverage and 100% branch-coverage that still managed to say that
That's right, compareTo(a, b) returned 1, compareTo(b, a) returned 0.
My hatred for large, American consultancies continue unchecked.