pjcj / Devel--Cover

Code coverage metrics for Perl
http://www.pjcj.net/perl.html
93 stars 87 forks source link

Allow to mark more than one statement uncoverable #288

Closed perlpunk closed 2 years ago

perlpunk commented 2 years ago

Examples:

# uncoverable statement count:1
# uncoverable statement count:1 count:2,5
# uncoverable statement count:1 count:1,4..7

This can be handy especially for subroutine signatures, where a signature for two parameters results in 4 statements

Not sure where to add a test for this, though.

Issue: #287

pjcj commented 2 years ago

Merged with 8e1d3995 - thank you! I added some tests in tests/uncoverable