stryker-net icon indicating copy to clipboard operation
stryker-net copied to clipboard

Linq mutator mutates Count to Sum

Open richardwerkman opened this issue 1 year ago • 1 comments

Describe the bug Count is being mutated into Sum, but this results in invalid mutations most of the time.

image

Expected behavior This is only a valid mutation in the case of an enumerable of numbers. Otherwise, this will always result in invalid muations. Maybe we can think of another mutation that does make sense in more cases. Or remove this mutation.

Context This mutation was added in the original Linq mutator implementation #185

richardwerkman avatar Nov 10 '23 09:11 richardwerkman

this may be addressed thanks to semantic context, which could identify when this is a numerical enumeration

dupdob avatar Nov 10 '23 10:11 dupdob