-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linq mutators for Union, Intersect, Concat & Except #1038
Comments
I Like these additions to the linq mutator. I'm not sure what your plan is with the If you'd like to help us more with our mutators you could check out this issue: stryker-mutator/stryker-handbook#33 |
@richardwerkman
I had a look at the other issue, but I don't really have any opinions on mutant levels, except that it sounds useful. |
That could prove hard as these methods are not always directly called on the list itself. They are often called like:
which would become:
That would not compile of couse. I think swapping the methods with their "opposite" method does the job as well and is a much easier mutation. So I'd rather go for your first suggestion. And thanks for taking a look at the other issue, good to know it sounds useful. |
I was wondering how to mutate code that involved the following LINQ methods
Union()
Intersect()
Concat()
Except()
One idea was this mapping
Union()
Intersect()
Intersect()
Union()
Concat()
Except()
Except()
Concat()
Alternatively would it be within the scope of Stryker or possible at all, to mutate the
IEnumerable<T>
parameter withEnumerable.Empty<T>()
?The text was updated successfully, but these errors were encountered: