Misapprehension 8: Code Coverage measures the quality of your test cases

Not always. Let’s take as an example a function that calculates the sinus function:

Is 100% coverage enough for that function?

Is 100% coverage enough for that function?

For the function in the figure above, a single test case, e.g. with an input value of 0 for the variable x_deg is sufficient to reach 100% branch/decision coverage, 100% MC/DC, and 100% MCC. The actual result is 0, what is the expected and correct value. But this single test case neither is error-sensitive nor is a single test case sufficient, even if you reach 100% coverage.