Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 8347
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: steve [...] fisharerojo.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: 0.52



Subject: gcov2perl fails on error "Undefined subroutine add_statement called"
gcov2perl fails everytime it is run with the above error. The fix is actually very simple. diff -u like patch is provided below to fix the AUTOLOAD method in Devel::Cover::DB::Structure.pm. my ($function, $criterion) = $func =~ /^(add|get)_(.*)/; croak "Undefined subroutine $func called" unless $criterion && --- grep $_ eq $criterion, $self->criteria, qw( time sub_name file line ); +++ grep $_ eq $criterion, $self->criteria, qw( time sub_name file line statement ); no strict "refs"; if ($function eq "get")