Branch Coverage

blib/lib/CPAN/Meta.pm
Criterion Covered Total %
branch 51 76 67.1


line true false branch
125 0 6 unless wantarray
127 6 0 if ref $value
167 26 4 if $value
191 2 1 if ref $value
223 48 6 if ($options->{'lazy_validation'}) { }
232 0 6 unless ($cmv->is_valid)
240 6 0 if ($version == 2) { }
254 0 11 if $@
274 0 1 if $@
294 22 0 unless exists $options->{'lazy_validation'}
296 0 22 unless -r $file
304 0 22 if $@
319 14 0 unless exists $options->{'lazy_validation'}
326 0 14 if $@
341 5 0 unless exists $options->{'lazy_validation'}
348 0 5 if $@
364 1 0 unless exists $options->{'lazy_validation'}
371 0 1 if $@
401 2 0 $] ge '5.008001' ? :
403 1 1 if ($version ge '2') { }
404 0 1 unless $file =~ /\.json$/
408 0 1 unless $file =~ /\.yml$/
413 0 2 unless open my $fh, ">$layer", $file
417 0 2 unless close $fh
456 1 1 unless @$features
479 1 3 unless $self->no_index->{'file'}
480 1 2 if $filename eq $no_index_file
484 2 0 unless $no_index_dir =~ m[/\z]
485 1 1 if index($filename, $no_index_dir) == 0
505 1 3 unless $self->no_index->{'package'}
506 1 2 if $package eq $no_index_pkg
510 1 1 if index($package, "${no_index_ns}::") == 0
549 0 2 unless my $f = $self->optional_features->{$ident}
570 1 9 if ($options->{'version'})
606 2 3 if ($self->meta_spec_version ne $version) { }
615 3 2 if ($version ge '2') { }
626 0 2 if ($@)
627 0 0 $backend->can('errstr') ? :