I've pushed a new, bit simplified version of the code. The error is now on 
line 11.

On Monday, July 15, 2024 at 9:59:02 PM UTC+2 Vibor Pokupec wrote:

> Hi everybody,
>
> I have a code sample on github: 
> https://github.com/FERViborg/jacoco-bug-coverage-branch/tree/production 
> and I tried to keep it as simple as possible but it is a bit of the complex 
> problem.
>
> All these conditions must be met:
> 1. there must be try-catch with a resource
> 2. there must be an if statement in that try block
> 3. there must be a return statement with the complex object inside of that 
> if statement
>
> When running:
> & "C:\Maven\3.9.1\bin\mvn.cmd" clean compile verify -f 
> "c:\Repositories\Jacoco\pom.xml"
>
> I do not get full coverage because character *}* on line 13 of the 
> class JacocoBadCoverageExample will report:
> *1 of 2 branches missed.*
>
> Is there a way to solve this?
>
> Best regards,
> Vibor
>
>

-- 
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/f017f0d3-b181-489a-9c60-2045431aa3dbn%40googlegroups.com.

Reply via email to