Condition Coverage

blib/lib/App/Fetchware/Util.pm
Criterion Covered Total %
condition 49 92 53.2


and 3 conditions

line !l l&&!r l&&r condition
81 56 2410 2 defined $fetchware::quiet && $fetchware::quiet > 0
104 90 5141 2 defined $fetchware::quiet && $fetchware::quiet > 0
106 90 741 4400 defined $fetchware::verbose and $fetchware::verbose > 0
152 9 188 2 defined $fetchware::quiet && $fetchware::quiet > 0
230 0 3 0 not config('mirror') and exists $opts{'PATH'}
240 3 0 0 exists $opts{'PATH'} and defined $opts{'PATH'}
3 0 0 exists $opts{'PATH'} and defined $opts{'PATH'} and $opts{'PATH'}
0 0 3 defined $url and $url
476 0 5 2 $pc_local_lookup_url->stat and not $pc_local_lookup_url->children
515 3 2 0 not config('mirror') and exists $opts{'PATH'}
2 0 0 not config('mirror') and exists $opts{'PATH'} and defined config('lookup_url') ? config('lookup_url') =~ m[^file://] ? 1 : 0 : 1
535 2 3 0 exists $opts{'PATH'} and defined config('lookup_url') ? config('lookup_url') =~ m[^file://] ? 1 : 0 : 0
554 5 0 0 exists $opts{'PATH'} and defined $opts{'PATH'}
5 0 0 exists $opts{'PATH'} and defined $opts{'PATH'} and $opts{'PATH'}
0 0 5 defined $url and $url
912 180 0 1 exists $opts{'MODE'} && defined $opts{'MODE'}
922 181 0 0 $info->uid != 0 and $info->uid != $<
979 716 0 0 $info->uid != 0 and $info->uid != $<
994 1 0 178 $info->mode & 512 and S_ISDIR($info->mode)
1055 0 126 0 is_os_type('Unix') and $< == 0 || $> == 0
1071 120 0 6 exists $opts{'SkipTempDirCreation'} and defined $opts{'SkipTempDirCreation'}
120 6 0 exists $opts{'SkipTempDirCreation'} and defined $opts{'SkipTempDirCreation'} and $opts{'SkipTempDirCreation'}

or 2 conditions

line l !l condition
831 0 0 $filename ||= 'index.html'
902 170 11 shift() // "Failed to open file [$file_to_check]. OS error [$!].\n"
1025 2 126 shift() // 'nobody'
1109 0 120 config('user') // 'nobody'

or 3 conditions

line l !l&&r !l&&!r condition
215 0 0 0 exists $opts{'PATH'} or defined $opts{'PATH'}
458 7 7 225 $filename eq '.' or $filename eq '..'
501 3 0 0 exists $opts{'PATH'} or defined $opts{'PATH'}
1055 126 0 0 $< == 0 || $> == 0
1411 0 0 387 $< != 0 or $> != 0
0 0 387 config('stay_root') or ($< != 0 or $> != 0)