|
|
|
|
|
by eb0la
1558 days ago
|
|
> you have shocked people when they find out that 100% test coverage doesn't mean that you really have a bug-free codebase. This applies specially to business people. 100% test coverage just means you tested that s*t with all you expected... ...but your software does not live isolated. Some external system may have a bug, or may inject some unforeseen values, or a solar flare might flip the value of a bit in your system and crash your software. |
|
After discovering the bug, one may even write a branchless implementation of this function for performance without updating the test, and it will still be 100% coverage. But the arithmetic has "logical branches" which do not look like ifs, instead they generate qualitatively different results for different inputs.