summary refs log tree commit diff
path: root/tests/coverage/condition
AgeCommit message (Collapse)AuthorLines
2024-10-11coverage: Include the highest counter ID seen in `.cov-map` dumpsZalathar-0/+7
When making changes that have a large impact on coverage counter creation, this makes it easier to see whether the number of physical counters has changed. (The highest counter ID seen in coverage maps is not necessarily the same as the number of physical counters actually used by the instrumented code, but it's the best approximation we can get from looking only at the coverage maps, and it should be reasonably accurate in most cases.)
2024-05-30coverage: Instrument the RHS value of lazy logical operatorsZalathar-45/+85
When a lazy logical operator (`&&` or `||`) occurs outside of an `if` condition, it normally doesn't have any associated control-flow branch, so we don't have an existing way to track whether it was true or false. This patch adds special code to handle this case, by inserting extra MIR blocks in a diamond shape after evaluating the RHS. This gives us a place to insert the appropriate marker statements, which can then be given their own counters.
2024-05-30coverage: Add a test for `-Zcoverage-options=condition`Dorian Péron-0/+274