You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(4) |
Jul
(12) |
Aug
(2) |
Sep
(4) |
Oct
(16) |
Nov
(2) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(2) |
Feb
(7) |
Mar
(3) |
Apr
(3) |
May
(5) |
Jun
(10) |
Jul
(3) |
Aug
(1) |
Sep
(1) |
Oct
(6) |
Nov
(2) |
Dec
(3) |
2009 |
Jan
(4) |
Feb
(1) |
Mar
(4) |
Apr
(3) |
May
(16) |
Jun
(15) |
Jul
(15) |
Aug
(2) |
Sep
(4) |
Oct
(4) |
Nov
(1) |
Dec
(6) |
2010 |
Jan
(4) |
Feb
(10) |
Mar
(4) |
Apr
(3) |
May
(5) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
(8) |
Nov
(7) |
Dec
(11) |
2011 |
Jan
(9) |
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(7) |
Jun
(5) |
Jul
(7) |
Aug
(3) |
Sep
(1) |
Oct
(2) |
Nov
(12) |
Dec
(5) |
2012 |
Jan
(2) |
Feb
(5) |
Mar
(29) |
Apr
(1) |
May
(4) |
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
|
2013 |
Jan
(4) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2012-03-23 07:22:54
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-23 00:22 Message: Wow, great article post.Really thank you! Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 23:09 Message: Thanks so much for the article.Really looking forward to read more. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 06:09:38
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 23:09 Message: Thanks so much for the article.Really looking forward to read more. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 04:53:03
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 21:53 Message: Im obliged for the post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 03:27:14
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 20:27 Message: I cannot thank you enough for the blog. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 02:12:08
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 19:12 Message: Im grateful for the article post.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-23 00:49:37
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 17:49 Message: Looking forward to reading more. Great article post.Really thank you! Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 23:31:46
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 16:31 Message: Great article.Really thank you! Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 22:30:04
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: Looking forward to reading more. Great article post.Really thank you! Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 22:30:00
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 15:30 Message: I really liked your blog post.Thanks Again. Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 21:25:21
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:25 Message: Fantastic blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 21:18:08
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 14:18 Message: Very neat blog article. Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 20:44:38
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:44 Message: Enjoyed every bit of your post.Really thank you! Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 20:28:09
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:28 Message: Thanks for sharing, this is a fantastic blog.Thanks Again. Want more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 20:23:32
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 13:23 Message: Major thankies for the post.Really thank you! Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 19:34:05
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 12:34 Message: Im obliged for the blog post.Really looking forward to read more. Keep writing. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 18:41:57
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 11:41 Message: Enjoyed every bit of your post. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 17:54:13
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:54 Message: Im thankful for the article post.Much thanks again. Really Cool. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 17:08:21
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 10:08 Message: I think this is a real great article.Thanks Again. Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 16:23:02
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 09:23 Message: Enjoyed every bit of your article post.Thanks Again. Fantastic. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 15:26:12
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 08:26 Message: I really like and appreciate your article post.Really thank you! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-22 11:58:13
|
Bugs item #2075537, was opened at 2008-08-26 03:13 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Branch coverage for switch statement fall-through cases Initial Comment: I'm currently using Cobertura 1.9, and I think it may be miscalculating branch coverage for a switch statement; cases which fall-through to the following case do not seem to be recognised as covered. I've got the following code: public enum AnEnumeration { FOO, BAR, GONK }; public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: case BAR: case GONK: return true; default: return false; } } The unit-test is checking all of the values in the enumeration but not the default case, so I'd expect to see branch coverage of 75% (3 out of 4 branches covered). However, the HTML coverage report seems to indicate that the branches aren't covered at all -- the calculated branch coverage is 25% (1/4). Interestingly, I've tried changing the switch statement to remove the fall-through behaviour: public boolean someMethod(AnEnumeration e) { switch (e) { case FOO: return true; case BAR: return true; case GONK: return true; default: return false; } } With the above code and the same unit-test, Cobertura indicates that the branches are covered and gives the expected coverage figure of 75% (3/4). So, to my uneducated eye, this looks like the fall-through behaviour is somehow confusing the branch coverage calculation. In case it matters, I'm using Java 5. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-22 04:58 Message: IZSjoq Thank you ever so for you blog.Really thank you! Really Great. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-12-18 01:35 Message: Fw9lSf <a href="http://rxlkpmkvtczd.com/">rxlkpmkvtczd</a>, [url=http://nkopbwehahjq.com/]nkopbwehahjq[/url], [link=http://tggkiatvrjbu.com/]tggkiatvrjbu[/link], http://lxsbuahjnagm.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 10:13 Message: 8zCY3x <a href="http://vnhwwjukjurt.com/">vnhwwjukjurt</a>, [url=http://jyypnkvzyiov.com/]jyypnkvzyiov[/url], [link=http://jnrlpgolchpp.com/]jnrlpgolchpp[/link], http://loqsmdcgixxp.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-08-19 09:05 Message: Mp5NE1 <a href="http://xahfoplgeggf.com/">xahfoplgeggf</a>, [url=http://odsjnceaqefk.com/]odsjnceaqefk[/url], [link=http://uqohrpgrvboa.com/]uqohrpgrvboa[/link], http://yxfegmkhijom.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-07-30 14:54 Message: PTsAti <a href="http://xdmdgeysfqjw.com/">xdmdgeysfqjw</a>, [url=http://pibenednxjqv.com/]pibenednxjqv[/url], [link=http://tmtspxtbkeaf.com/]tmtspxtbkeaf[/link], http://leidsspxsgxy.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-06-30 21:33 Message: niCiHf <a href="http://lngdwqrbhjmp.com/">lngdwqrbhjmp</a>, [url=http://lyrnxnxovhib.com/]lyrnxnxovhib[/url], [link=http://itgctlaxqxqz.com/]itgctlaxqxqz[/link], http://vmtncyfamimc.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-05-17 16:51 Message: fL3Xod <a href="http://kgoixptxrrrs.com/">kgoixptxrrrs</a>, [url=http://zhdpsftyufbx.com/]zhdpsftyufbx[/url], [link=http://vinsuxyjwkjf.com/]vinsuxyjwkjf[/link], http://gtblfuvruime.com/ ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2011-01-24 15:53 Message: Changes to the way switch statments are reported will probably go in the next release. Please see: http://sourceforge.net/mailarchive/forum.php?thread_name=EC3002866D5A9D4887210D53E3DA563914CB1E64%40MERCMBX03D.na.SAS.com&forum_name=cobertura-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2075537&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-03-09 11:01:46
|
Bugs item #3408140, was opened at 2011-09-12 09:39 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3408140&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: Cobertura instrumented files are incompatibles with jdk 7 Initial Comment: When instrumenting java 7 compiled classes, we encounter java.lang.VerifyError as described in this post : http://t.co/5qwXOkB ---------------------------------------------------------------------- Comment By: Sofus Albertsen () Date: 2012-03-09 03:01 Message: Having the same fail when compiling java-7 with maven. Expecting a stackmap frame at branch target 782 in method dk...setLoginInformation(Ljava/lang/String;Ljava/lang/String;)V at offset 43 ---------------------------------------------------------------------- Comment By: Jagger () Date: 2011-11-16 12:40 Message: I am having exactly the same problem. First I used Emma for my coverage so I switched to Cobertura but it looks it is not compatible with JDK 7 either. Will this problem be covered anytime soon? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2011-11-13 13:02 Message: I am having exactly the same problem. First I used Emma for my coverage so I switched to Cobertura but it looks it is not compatible with JDK 7 either. Will this problem be covered anytime soon? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3408140&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-02-20 12:22:42
|
Bugs item #2907314, was opened at 2009-12-01 23:37 Message generated for change (Comment added) made by kutterma You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2907314&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: "--encoding" option does not work correctly Initial Comment: "--encoding" option does not work correctly because encoding parameter does not pass to newReader(InputStream) called by constructor Javancss(InputStream) . ---------------------------------------------------------------------- Comment By: Martin Kutter (kutterma) Date: 2012-02-20 04:22 Message: I can confirm that the patch works fine. To reproduce the issue, create a class containing the following code: char umlautChar = 'ü'; and scan it with cobertura. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=2907314&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-02-20 08:11:24
|
Bugs item #3020621, was opened at 2010-06-23 23:03 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3020621&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Javancss in cobertura does not support UTF-8 Initial Comment: Hi, I'm working with cobertura to genenrate some coverage report of Japanese project. It reports the following error: [cobertura] WARN [main] net.sourceforge.cobertura.reporting.ComplexityCalculator - JavaNCSS got an error while parsing the java file After going through the source codes of cobertura 1.9.4.1, it seems the Javancss and ComplexityCalculator does not work with UTF-8. Related source: ComplexityCalculator.java L102 Javancss.java L413 Pls have a confirm it and it would be kind if you fix it in next release. Thx. Joey. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-02-20 00:11 Message: Sory, of course the bug duplicates 2907314 (and not itself). ---------------------------------------------------------------------- Comment By: Martin Kutter (kutterma) Date: 2012-02-17 03:42 Message: This is a duplicate of Javancss in cobertura does not support UTF-8 - ID: 3020621 . There's even a patch for it - can you apply it? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3020621&group_id=130558 |
From: SourceForge.net <no...@so...> - 2012-02-17 11:42:12
|
Bugs item #3020621, was opened at 2010-06-23 23:03 Message generated for change (Comment added) made by kutterma You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3020621&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Javancss in cobertura does not support UTF-8 Initial Comment: Hi, I'm working with cobertura to genenrate some coverage report of Japanese project. It reports the following error: [cobertura] WARN [main] net.sourceforge.cobertura.reporting.ComplexityCalculator - JavaNCSS got an error while parsing the java file After going through the source codes of cobertura 1.9.4.1, it seems the Javancss and ComplexityCalculator does not work with UTF-8. Related source: ComplexityCalculator.java L102 Javancss.java L413 Pls have a confirm it and it would be kind if you fix it in next release. Thx. Joey. ---------------------------------------------------------------------- Comment By: Martin Kutter (kutterma) Date: 2012-02-17 03:42 Message: This is a duplicate of Javancss in cobertura does not support UTF-8 - ID: 3020621 . There's even a patch for it - can you apply it? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3020621&group_id=130558 |