Slide 34
Slide 34 text
mutateBinaryExpr
mutations := m.getArithmeticMutations(expr.Op)
mutants := make([]Mutant, 0, len(mutations))
for _, newOp := range mutations {
mutants = append(mutants, Mutant{
Line: pos.Line,
Column: pos.Column,
Original: expr.Op.String(), // "+"
Mutated: newOp.String(), // "-, *, /"
})
}
return mutants