Muex.Mutator.StatementDeletion (Muex v0.6.2)

View Source

Mutator that removes individual statements from blocks.

Targets __block__ nodes with two or more statements. For each non-final statement, produces a mutation that deletes it from the block. The final statement (the return value) is left to the ReturnValue mutator.

This is one of the highest-value mutation operators: if deleting a statement doesn't cause any test to fail, that statement is either dead code or untested side-effect logic.