Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

ExcludeFromCodeCoverage not supported for local functions?
GreenMoose
#1 Posted : Saturday, July 15, 2023 10:45:28 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 503

Thanks: 142 times
Was thanked: 66 time(s) in 64 post(s)
[4.14.0.7]

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

screenshot
p.s. maybe include some info about this attribute and its limitation in NCrunch in https://www.ncrunch.net/...de-coverage-suppression ? d.s.
GreenMoose
#2 Posted : Saturday, July 15, 2023 12:34:51 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 503

Thanks: 142 times
Was thanked: 66 time(s) in 64 post(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).
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.022 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download