Condition Coverage

blib/lib/App/Fetchware/Util.pm
Criterion Covered Total %
condition 50 92 54.3


and 3 conditions

line !l l&&!r l&&r condition
81 120 2042 2 defined $fetchware::quiet && $fetchware::quiet > 0
104 218 4339 2 defined $fetchware::quiet && $fetchware::quiet > 0
106 218 495 3844 defined $fetchware::verbose and $fetchware::verbose > 0
152 9 151 2 defined $fetchware::quiet && $fetchware::quiet > 0
230 0 3 0 not config('mirror') and exists $opts{'PATH'}
253 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
487 0 5 2 $pc_local_lookup_url->stat and not $pc_local_lookup_url->children
527 0 2 3 not config('mirror') and exists $opts{'PATH'}
2 3 0 not config('mirror') and exists $opts{'PATH'} and not config('lookup_url') =~ m[^file://]
542 2 0 3 exists $opts{'PATH'} and config('lookup_url') =~ m[^file://]
555 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
913 162 0 1 exists $opts{'MODE'} && defined $opts{'MODE'}
923 163 0 0 $info->uid != 0 and $info->uid != $<
980 642 0 0 $info->uid != 0 and $info->uid != $<
995 2 0 159 $info->mode & 512 and S_ISDIR($info->mode)
1056 0 125 0 is_os_type('Unix') and $< == 0 || $> == 0
1072 119 0 6 exists $opts{'SkipTempDirCreation'} and defined $opts{'SkipTempDirCreation'}
119 0 6 exists $opts{'SkipTempDirCreation'} and defined $opts{'SkipTempDirCreation'} and $opts{'SkipTempDirCreation'}

or 2 conditions

line l !l condition
832 0 0 $filename ||= 'index.html'
903 152 11 shift() // "Failed to open file [$file_to_check]. OS error [$!].\n"
1026 2 125 shift() // 'nobody'
1105 0 119 config('user') // 'nobody'

or 3 conditions

line l !l&&r !l&&!r condition
215 0 0 0 exists $opts{'PATH'} or defined $opts{'PATH'}
469 7 7 230 $filename eq '.' or $filename eq '..'
512 3 0 0 exists $opts{'PATH'} or defined $opts{'PATH'}
1056 125 0 0 $< == 0 || $> == 0
1400 0 0 341 $< != 0 or $> != 0
0 0 341 config('stay_root') or ($< != 0 or $> != 0)