Coverage reports

Go coverprofile merger

Merge identical Go coverage blocks and summarize covered statements.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Sum hit counts for count/atomic modes; combine set mode with logical OR. Identical extents must have the same statement count.

Counts 2 and 3 for the same block merge to 5; the block’s one statement is covered.

Limits

Profiles must use one mode. Only identical block extents merge; changed source or overlapping different blocks need review. Source files are not read.