Condition Coverage

blib/lib/PAR/Dist.pm
Criterion Covered Total %
condition 12 160 7.5


and 3 conditions

line !l l&&!r l&&r condition
171 0 0 0 -r $_ and not -d $_
214 0 0 0 $name && $version
0 0 0 not $name && $version and open MAKEFILE, 'Makefile'
225 0 0 0 defined $name and defined $version
271 0 0 0 $dist and $file ne $dist
546 0 0 0 not defined $value and $key ne 'packlist_read'
0 0 0 not defined $value and $key ne 'packlist_read' and $key ne 'packlist_write'
558 0 0 0 $user->{'auto_inst_lib_conversion'} and $par_has_archlib
643 0 0 0 -f $base_par and -r _
0 0 0 -f $base_par and -r _ and -w _
648 0 0 0 -f $_ and -r _
743 0 0 0 defined $meta_orig_file and -f $meta_orig_file
744 0 0 0 defined $meta_extra_file and -f $meta_extra_file
750 0 0 0 exists $yaml_functions->{'LoadFile'} and exists $yaml_functions->{'DumpFile'}
832 0 0 0 -f $par and -r _
0 0 0 -f $par and -r _ and -w _
888 0 0 0 defined $dist and -r $dist
939 0 0 0 $zip->read($dist) == Archive::Zip::AZ_OK() and $zip->extractTree('', "$path/") == Archive::Zip::AZ_OK()
1004 0 0 0 $args{'dist'} and not $args{'dist'} =~ /\.[a-zA-Z_][^.]*$/
1012 0 0 0 $args{'dist'} and $args{'dist'} =~ m[^\w+://]
1042 0 0 0 not LWP::Simple::is_success($rc) and $rc != 304
1146 1 4 1 @elem && $elem[0] =~ /^$version$/o
8 1 5 $e =~ /^$version$/o and not @elem && $elem[0] =~ /^$version$/o
1224 0 0 0 !defined($suffix) || $suffix eq '' and $archname
0 0 0 !defined($suffix) || $suffix eq '' and $archname and $perlversion
1282 0 0 0 defined $dist and -r $dist
1300 0 0 0 -f $_ and not /^\.exists$/
1358 2 0 2 defined $subref and ref $subref eq 'CODE'
1382 1 0 0 eval { do { require Archive::Zip; 1 } } and $Archive::Zip::VERSION ne '1.28'
1 0 0 _MI_can_run('zip') and _MI_can_run('unzip')

or 2 conditions

line l !l condition
147 0 0 $args{'quiet'} || 0
462 0 0 $args{'custom_targets'} || {}
497 0 0 shift() || {}
774 0 0 $orig_hash->{'provides'} ||= {}
796 0 0 $orig_hash->{$type} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
153 0 0 0 $args{'suffix'} || "$Config::Config{'archname'}-$Config::Config{'version'}.par"
196 0 0 0 $name ||= $1
202 0 0 0 $version ||= $1
207 0 0 0 $version ||= $1
217 0 0 0 $name ||= $1
220 0 0 0 $version ||= $1
269 0 0 0 $dist ||= 'File::Spec'->catfile($cwd, $file)
446 0 0 0 not defined $name or $name eq ''
473 0 0 0 $args{'packlist_read'} || "$Config::Config{'installsitearch'}/auto/$name/.packlist"
926 0 0 0 $args{'path'} || 'File::Spec'->curdir
986 0 0 0 $args{'name'} ||= $args{'dist'}
1007 0 0 0 $suffix ||= "$Config::Config{'archname'}-$Config::Config{'version'}.par"
1031 0 0 0 $ENV{'PAR_TEMP'} ||= 'File::Spec'->catdir('File::Spec'->tmpdir, 'par')
1062 0 0 0 $action ||= -e 'SIGNATURE' ? 'verify' : 'sign'
1222 0 0 0 $name ||= $parse_name
1223 0 0 0 $version ||= $parse_version
1224 0 0 0 !defined($suffix) || $suffix eq ''
1228 0 0 0 $suffix ||= "$Config::Config{'archname'}-$Config::Config{'version'}"
1326 0 0 1 -x $_cmd or $_cmd = 'MM'->maybe_command($_cmd)
1330 0 0 10 -x $abs or $abs = 'MM'->maybe_command($abs)