You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far I've been using the invasive specification to mark code as uncoverable, but that causes me to lose my coverage data each time I change something; therefore I wanted to try out the non-invasive way with cover -add_uncoverable_point. My first attempt led to this error message (I probably haven't gotten the specification right yet, the docs are unfortunately lacking):
martin.mein-iserv.de ~/git/user-backend/sbin (63013-chkmanagedusers) # cover -add_uncoverable_point 'chkmanagedusers condition 345 1 left foo bar'
Reading database from /root/git/user-backend/sbin/cover_db
Use of uninitialized value $_ in split at /usr/lib/x86_64-linux-gnu/perl5/5.32/Devel/Cover/DB.pm line 618.
Use of uninitialized value $file in open at /usr/lib/x86_64-linux-gnu/perl5/5.32/Devel/Cover/DB.pm line 622.
Use of uninitialized value $file in concatenation (.) or string at /usr/lib/x86_64-linux-gnu/perl5/5.32/Devel/Cover/DB.pm line 623.
Devel::Cover: Can't open : No such file or directory at /usr/lib/x86_64-linux-gnu/perl5/5.32/Devel/Cover/DB.pm line 623.
As far as I can tell, this is an obvious bug in lib/Devel/Cover/DB.pm:
Thanks for looking at this. You're right about the docs. I was working on the whole uncoverable feature and deliberately didn't document it because it was all quite fluid. Then I sort of ran out of time and people were finding it useful anyway so I tidied it up a bit and released it, but never quite got around to finishing it up. The $add vs $_ bug is an obvious symptom of this.
So far I've been using the invasive specification to mark code as uncoverable, but that causes me to lose my coverage data each time I change something; therefore I wanted to try out the non-invasive way with
cover -add_uncoverable_point
. My first attempt led to this error message (I probably haven't gotten the specification right yet, the docs are unfortunately lacking):As far as I can tell, this is an obvious bug in
lib/Devel/Cover/DB.pm
:Devel--Cover/lib/Devel/Cover/DB.pm
Lines 620 to 622 in 82526a3
The
for
loop names the variable$add
, but thesplit
attempts to parse$_
instead of$add
.The text was updated successfully, but these errors were encountered: