Sorry for the late reply. I'm positive for this proposal.
There is the same request #13838, which reminds me of this ticket. That issue proposes Coverage.enabled?. I'm unsure, but running? seems a bit better to me because the starting API is not Coverage.enabled = true but Coverage.start.
Any opinions? If there is no strong objection, I will choose running?.
ext/coverage/coverage.c (rb_coverage_running): add to quickly
check if coverage is enabled. patched by Burke Libbey in [ruby-core:81726]. [Feature #13667]
I applied the patch proposed. After that, however, I'm now considering reverting it.
I noticed that this feature may be dangerous. By using this, we can easily write a program that changes its behavior only under coverage measurement. It brings difficulties to testing with coverage measurement. I don't see such a bad program released into the wild.
Could you elaborate your use case that beats the disadvantage? If any, I will remain the feature, but otherwise, I will revert it.