Patch undercover Result class to report branch coverage

What does this MR do and why?

Patch undercover Result class to report branch coverage

In some cases, e.g. safe navigation (&.) inside a method call, the lcov coverage data reports branch coverage data for that line (BRDA), but not line coverag data for that line (DA). This causes the undercover reporting to report a failure, but does not display clearly where the undercover issue.

This patch fixes that display problem by showing branch coverage data in this case.

References

Screenshots or screen recordings

Before After
Screenshot_2026-01-13_at_12.28.35_PM Screenshot_2026-01-13_at_12.24.26_PM

How to set up and validate locally

Edited by Thong Kuah

Merge request reports

Loading