pjcj / Devel--Cover

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

Fix freed value in iteration exception (issue #346) #347

Open trwyant opened 1 month ago

trwyant commented 1 month ago

This is brought on by, e.g., $ cover --coverage=default,-pod,-time Use of freed value in iteration at /Users/Shared/trw/local/perl/5.40.0/bin/cover

It requires at least two negated coverage categories to trigger the exception.

Also added recognition of negated abbreviated coverage category names (e.g. --coverage=default,-sub). These were previously ignored, though asserted abbreviations were recognized.