Branch Coverage

blib/lib/CPAN/PackageDetails/Entries.pm
Criterion Covered Total %
branch 34 48 70.8


line true false branch
88 0 0 unless defined $index
136 0 1481 if defined $_[1]
149 0 1 if defined $_[1]
162 0 1499 if defined $_[1]
188 0 1493 unless defined $version
189 2 1491 if '' eq $version
197 10 1483 if ($at) { }
10 1473 elsif (defined $warning) { }
211 18 1464 if (exists $args{'package_name'})
218 12 1470 if (defined $warning)
223 3 1479 if ($self->disallow_alpha_versions and $alpha)
227 0 1479 unless (defined $args{'package name'})
232 1 1478 unless ($args{'package name'} =~ / ^ [A-Za-z0-9_]+ (?: (?:\::|') [A-Za-z0-9_]+ )* \z /x or $self->allow_suspicious_names)
245 1 1477 if ($self->allow_packages_only_once and $self->already_added($args{'package name'}))
291 1 2 unless $string
310 7 9 unless (ref $self->{'sorted'} eq ref [])
323 0 13 unless eval { do { require version } }
324 0 13 unless 'version'->can('parse')
328 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') } }
344 0 16 if $w
346 0 16 if ($self->disallow_alpha_versions and $v->is_alpha) { }
361 12 4 wantarray ? :
390 0 4 unless defined $distribution
395 28 0 if defined $info->dist