Hi, this is not possible. You may extract the code to its own method.
Regards, -marc > On 9. Oct 2023, at 13:33, Omar Al-Haj Qasem <omar.hajqa...@gmail.com> wrote: > > I need to exclude code block from code covarge, not just execlude function or > class. > for example, when to exclude if starement or else branch from coverage. > Is that possible? if not, is there some kind of work around to do so? > > Thanks > Omar > > -- > 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+unsubscr...@googlegroups.com > <mailto:jacoco+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/ad190671-52ff-4397-9cd9-41c0533ece6bn%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/ad190671-52ff-4397-9cd9-41c0533ece6bn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/B0D75718-E5FB-49B9-A238-55AD5870A4FE%40mountainminds.com.