Muex.Mutator.WithClause (Muex v0.8.0)

View Source

Elixir-specific mutator that deletes a <- clause from a with expression.

For a with containing two or more <- clauses, produces one mutation per <- clause that removes it while preserving the do/else block and any bare (non-<-) expressions.

Some deletions may produce code that no longer compiles (a later clause or the body referencing the deleted binding); those are reported as invalid mutants by the runner rather than survivors. A clause whose removal compiles and passes the suite points at a with step the tests do not depend on.