How jacoco filters the lombok generated code for codeline total counts ?

27 views
Skip to first unread message

zhen da

unread,
Oct 15, 2020, 3:22:46 AM10/15/20
to JaCoCo and EclEmma Users
Hi~ guys:
 I noticed "org.jacoco.core.analysis.ICoverageNode#getLineCounter" can get the correct original total num of code lines without original  source codes. How could this been achieved?
I mean I annotate my source code with @Data, but jacoco computes the total lines ignoring these generated codes . Can somebody give me some clues of code implementation ?

Thanks~

Marc Hoffmann

unread,
Oct 15, 2020, 5:05:18 AM10/15/20
to JaCoCo and EclEmma Users
Hi,

JaCoCo derives all line number information from the debug information in the *.class files.

Regards,
-marc

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/3f7ef3f1-2002-4d13-970b-5d92ec323173n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages