pjcj / Devel--Cover

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

Symbol::delete_package breaks coverage #313

Open jkahrman opened 1 year ago

jkahrman commented 1 year ago

Using Symbol::delete_package causes the following error in Devel::Cover

Devel::Cover: 47% Devel::Cover: Oops, it looks like something went wrong writing the coverage.
              It's possible that more bad things may happen but we'll try to
              carry on anyway as if nothing happened.  At a minimum you'll
              probably find that you are missing coverage.  If you're
              interested, the problem was:

Can't locate object method "NAME" via package "B::SPECIAL" at /usr/lib/x86_64-linux-gnu/perl5/5.32/Devel/Cover.pm line 1187.

Here's a minimal amount of perl that reproduces the failure: del_pkg.txt

Not sure if the following is right or sensible, but it does suppress the error:

devel_cover_special.patch.txt