Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-TestCoverage CPAN distribution.

Report information
The Basics
Id: 24176
Status: resolved
Priority: 0/
Queue: Test-TestCoverage

People
Owner: RENEEB [...] cpan.org
Requestors: willert [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: test_coverage_ok fails on classes without static subs
ok_test_coverage() fails for modules that have no static sub declarations. This can easily happen when using code generators like DBIx::Class and friends. This can easily fixed if the package hash is predeclared when registering the module for coverage tests as shown below. --- sub test_coverage{ my ($package) = @_; return unless defined $package; $last = $package; _get_subroutines($package); + # don't fail on subs without static subs + $invokes->{$package} = {}; for my $subref(@{$self->{subs}->{$package}}){ [...]
This will be fixed with the next version ( I will upload it within the next two days )