Muex.Mutator.CondClause (Muex v0.8.0)

View Source

Elixir-specific mutator that deletes a clause from a cond expression.

For a cond with two or more clauses, produces one mutation per clause that removes it from the branch list. Single-clause conds are left untouched.

Companion to CaseClause: a surviving mutant means a cond branch is either unreachable or its selection is unasserted. Conditions and bodies within surviving clauses are still mutated independently by walk/3.