hcoles / pitest

State of the art mutation testing system for the JVM
Apache License 2.0
1.67k stars 357 forks source link

supress common performance related equivalent mutant in equals methods #362

Open hcoles opened 7 years ago

hcoles commented 7 years ago

Standard form for an equals method is to start with

  if ( this == aThat ) return true

Before performing a deeper comparison.

Mutation to this will be either easily detected or equivalent as they affect only performance. It would make sense to filter them out (or at least the equivalent ones).

hcoles commented 6 years ago

released in 1.2.3

hcoles commented 6 years ago

Re-opening as some instances not being suppressed as expected.