public enum Suit {
Clubs, Diamonds, Hearts, Spades
}
After running code coverage on my test case Emma displays the package statement in yellow (which gives me a 92.9 % code coverage). Is there a work around for this, or have I misunderstood something?
Thanks very much.
... Greg ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"EclEmma/EMMA works on byte code, the syntax highlighting is based on the line numbers within the compiled class files. Some Java language constructs will create extra byte code which does not have any corresponding line of source code. In such cases the compiler picks some line for it. In your case the extra code is the method Side.valueOf()."
-marc
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a very small Enum class.
package ca.attractors.blackjack;
public enum Suit {
Clubs, Diamonds, Hearts, Spades
}
After running code coverage on my test case Emma displays the package statement in yellow (which gives me a 92.9 % code coverage). Is there a work around for this, or have I misunderstood something?
Thanks very much.
... Greg ...
Sorry,
This is (of course) using the plug-in for eclipse. The rest of the enum shows green. (covered)
... Greg ...
The same question was raised before in the EclEmma forum. See this thread for a discussion:
https://sourceforge.net/forum/message.php?msg_id=5088116
"EclEmma/EMMA works on byte code, the syntax highlighting is based on the line numbers within the compiled class files. Some Java language constructs will create extra byte code which does not have any corresponding line of source code. In such cases the compiler picks some line for it. In your case the extra code is the method Side.valueOf()."
-marc