top | item 40774143

(no title)

SassyBird | 1 year 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.

discuss

order

ffsm8|1 year ago

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

discreteevent|1 year ago

Those who dunning kruger should be careful lest they be dunning krugered themselves!