Assignment not mutated away #3201
-
Was a little surprised when I did not have a mutation in the following code on line 31 I would expect that a simple assignment like that would be mutated to just be replaced with a ; - just like the method call in line 30 does - but apparently it does not. And reading the docs for supported mutations, I can't find anything that would do that to a simple assignment. I tried to search for the answer here, but to no avail - what am I missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Our docs are generally up to date with the implementation. If it's not listed as a supported mutation, it is not a mutation we perform. As you can see here: https://stryker-mutator.io/docs/stryker-net/mutations/#removal-mutators-statement-block assignment statements are not listed, so you're not missing anything. It is not currently a mutation we perform. |
Beta Was this translation helpful? Give feedback.
-
Super - it just seemed like it would be an obvious thing to mutate, so I'm wondering if it had been tried but there are problems with it I can't see. If not, it might be something, if I got the time, that might be useful to look at and create a PR for it? |
Beta Was this translation helpful? Give feedback.
-
Oh, and thanks for taking the time to answer! :) |
Beta Was this translation helpful? Give feedback.
Our docs are generally up to date with the implementation. If it's not listed as a supported mutation, it is not a mutation we perform. As you can see here: https://stryker-mutator.io/docs/stryker-net/mutations/#removal-mutators-statement-block assignment statements are not listed, so you're not missing anything. It is not currently a mutation we perform.