Line Coverage Understanding

Hi team,

I am looking for some clarification i am facing issue with my report,

In the below image if you see, coverage is 100% in both new code and overall coverage but it still shows 11 lines to be covered.

this is impacting my overall sonar report.

can you please help me understand this report or if there is any issue with report generated.

Here its 100% covered but still saying 1 line to cover.


Welcome to the community!

Lines to Cover is not a count-down of the work left to do. It’s simply a count of everything that could be covered (whether or not it already is).

For the count-down, look to Uncovered Lines (the metric right below Lines to Cover). You should see it move toward zero as you add coverage, and indeed your screenshot shows there is 0 work left to do in this area.