Branch Coverage

blib/lib/CPAN/PackageDetails/Entries.pm
Criterion Covered Total %
branch 34 50 68.0


line true false branch
90 0 0 unless defined $index
139 0 1481 if defined $_[1]
152 0 1 if defined $_[1]
165 0 1499 if defined $_[1]
191 0 1493 unless defined $version
192 2 1491 if '' eq $version
200 0 1493 if $warning =~ /numify\(\) is lossy/i
201 10 1483 if ($at) { }
0 1483 elsif (defined $warning) { }
215 18 1464 if (exists $args{'package_name'})
222 5 1477 if (defined $warning and warnings::enabled())
227 3 1479 if ($self->disallow_alpha_versions and $alpha)
231 0 1479 unless (defined $args{'package name'})
236 1 1478 unless ($args{'package name'} =~ / ^ [A-Za-z0-9_]+ (?: (?:\::|') [A-Za-z0-9_]+ )* \z /x or $self->allow_suspicious_names)
249 1 1477 if ($self->allow_packages_only_once and $self->already_added($args{'package name'}))
295 1 2 unless $string
314 7 9 unless (ref $self->{'sorted'} eq ref [])
327 0 13 unless eval { do { require version } }
328 0 13 unless 'version'->can('parse')
332 0 13 unless eval { do { die 'Could not load version.pm!' unless eval { do { require version } }; die q[Your version of the version module doesn't handle the parse method!] unless 'version'->can('parse') } }
348 0 16 if $w
350 0 16 if ($self->disallow_alpha_versions and $v->is_alpha) { }
365 12 4 wantarray ? :
379 0 4 unless defined $distribution
384 28 0 if defined $info->dist