Can a fully covered code have an EclEmma coverage rating of less than 100%?

I just wrote some simple code examples to make sure that EclEmma is installed correctly. I do not get 100% coverage, and I do not understand why. Highlighting implies that it is associated with a class name. Here is my code, with the corresponding JUnit tests, the way EclEmma allocated it:

Arithmetic class

Tests for Arithmetic class

The coverage results show that the three teams Arithmeticdo not fall into, although both actual methods seem completely private:

Cooverage information

I read the EclEmma documentation on basic block coverage , but I'm still confused. I'm not sure which core blocks are skipped. At first I thought that EclEmma might just ignore bytecode for classes, but ArithmeticTestit seems to be processed just fine.

:

  • , / EclEmma?
  • / EMMA , 100%, , ?
+5
3

, Emma, ​​ .

, Emma , , - ; -, . , , , , - .

public Arithmetic() {
  super();
}

- , Object. , . , "3 " .

+9

, Arithmetic, private,

+4

IIRC, you need to instantiate a class to use the provided constructor language.

+2
source

All Articles