Muex. Mutator. CaseClause
(Muex v0.8.0)
View Source
Elixir-specific mutator that deletes a clause from a case expression.
For a case with two or more clauses, produces one mutation per clause that
removes that clause from the branch list. Cases with a single clause are left
untouched (there is nothing to delete).
Like StatementDeletion, this is a high-value operator: if removing a branch
doesn't fail any test, that branch is either unreachable or its behaviour is
unasserted. Patterns and bodies within surviving clauses are still mutated
independently by their own mutators via walk/3.