You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivating example: there are some cases where I pass an object to an API I don't control. In those cases I sometimes freeze the object first and generally am happy to do "unnecessary" freezing of objects. In some cases it's easy to write a test where the result of something is frozen but in cases where the object is passed into a different method and the result is a new object it's not possible to assert that something received #freeze or is frozen.
It might be reasonable to generally not try to delete #freeze (although you lose the ability to detect redundant freezes if you care about that) or (what I want with this issue) make the ignore pattern system support ignoring these. I tried adding:
Motivating example: there are some cases where I pass an object to an API I don't control. In those cases I sometimes freeze the object first and generally am happy to do "unnecessary" freezing of objects. In some cases it's easy to write a test where the result of something is frozen but in cases where the object is passed into a different method and the result is a new object it's not possible to assert that something received
#freeze
or is frozen.It might be reasonable to generally not try to delete
#freeze
(although you lose the ability to detect redundant freezes if you care about that) or (what I want with this issue) make the ignore pattern system support ignoring these. I tried adding:to my
.mutant.yml
but it did not prevent the removal mutation from applying.Here is a trivial/contrived example but it shows the problem:
Result of running mutant is one alive mutation:
The text was updated successfully, but these errors were encountered: