Open stanislaw opened 4 years ago
One mutation that will work is "remove if block". And this leads us to a yet another bit of work of actually implementing that mutation operator.
A normal test coverage measurement (without mutations) would show that the -1 case is never executed. Mutation testing is primarily useful to discover situations where the normal test coverage shows that a line is covered but the actual results are not properly verified.
This is a test program:
This is the Makefile:
This is the execution result:
It can be seen that there is no survived mutation that would hint at the missing test case (the one that is commented out).
Would be nice to find out which mutation would reveal this missing test case.