stryker-mutator / stryker-net

Mutation testing for .NET core and .NET framework!
https://stryker-mutator.io
Apache License 2.0
1.76k stars 175 forks source link

Linq mutator for query syntax #2763

Open richardwerkman opened 9 months ago

richardwerkman commented 9 months ago

Is your feature request related to a problem? Please describe. Linq mutations currently only work for Method Style. But query syntax isn't mutated. Example:

            IEnumerable<int> orderingQuery =
                from num in numbers
                where num < 3 || num > 7
                orderby num ascending
                select num;

Describe the solution you'd like The linq query syntax is fairly limited so we can't mutate a lot. I think we can only mutate:

Original Mutated
orderby num ascending orderby num descending
orderby num descending orderby num ascending
orderby num orderby num descending

Additional context The contents of the where in query syntax are already mutated.