Daily Usage Issues

ExcludeFromCodeCoverage not supported for local functions?

Started by GreenMoose on 1,463 views

[4.14.0.7]

[ExcludeFromCodeCoverage] attribute seems to be "ignored" for local functions, is this due to technical limitations or a bug?

[img=https://i.imgur.com/8434r27.png]screenshot[/img]
p.s. maybe include some info about this attribute and its limitation in NCrunch in https://www.ncrunch.net/documentation/concepts_code-coverage-suppression ? d.s.
My bad, just realized it is the LINQ expression only that is covered. The rest of function on line 34-40 it is actually being ignored.
(And the coverage behavior for LINQ thing is to be expected, and workaround is to use NCrunch suppression comments).

Edited

Post a reply

Log in to reply.