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

Notification

Icon
Error

In switch statements that are one line of code and a "break" statement, only "break" shows coverage
dhgoldman
#1 Posted : Wednesday, December 7, 2011 11:21:06 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/4/2011(UTC)
Posts: 3

I have a few switch statements that are one line of code and a "break" statement, and I noticed that NCrunch only showed coverage for the "break" line. I stepped through the application to make sure I wasn't crazy, and the one line of code was indeed hit during my tests.
Remco
#2 Posted : Thursday, December 8, 2011 12:18:22 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,150

Thanks: 961 times
Was thanked: 1294 time(s) in 1200 post(s)
Yes - there is a defect in here around the code coverage marking on switch statements. Not all of the coverage markers on these statements are 100% accurate. This issue also seems to affect reported coverage around some inline delegates. Thanks for reporting the issue. It will be fixed.
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.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download