Is this rust branch coverage report wrong?

โš“ Rust    ๐Ÿ“… 2025-11-11    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 2      

surdeus

I am using Instrumentation-based Code Coverage๏ผŒand I get report for a function as below:

img_v3_02ru_867a18f7-ef11-4d27-801a-7ba6d74d6a7g

It can be seen that for each branch its true and false are both executed at least once, so branch coverage of this function should be 100%.

However in index.html the branch coverage is reported as 3/4.

image

Is the branch coverage wrong? Or how to possibly interpret this value

1 post - 1 participant

Read full topic

๐Ÿท๏ธ Rust_feed