|
|
|
|
|
by SassyBird
726 days ago
|
|
> 100% branch coverage means that you've fundamentally covered all potential states your software can enter. No, it doesn’t. bool is_even(int n) {
return true;
}
bool test_is_even() {
return is_even(2);
}
100% test coverage. And yet. |
|
Your example software makes the claim that integers that the given runtime/interpreter/VM can handle will be assured as true. This was tested.
Nobody said that any description of the software is always correct, just because a test was added that tests random stuff
Also note that that's not 100% coverage. It merely covers your code, which builds upon other code.
Feel free to actually read the given link. Your horizon might be expanded. Or don't, and keep your dunning kruger worldview