Hacker News new | ask | show | jobs
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.
1 comments

Are you seriously that big brain that you think that's smart?

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

Those who dunning kruger should be careful lest they be dunning krugered themselves!
I guess we're desperate to get to answer to the question of how dumb comment chains on this forum can get, and wherever everyone involved is either mentally or actually in the /r/im-12-and-this-is-smart phase.