Condition Coverage

lib/SMB/File.pm
Criterion Covered Total %
condition 21 41 51.2


and 3 conditions

line !l l&&!r l&&r condition
102 0 1 11 !$is_ipc && $filename && -e $filename
103 12 0 0 $is_ipc && $name =~ /^(?:srvsvc|wkssvc)$/
354 0 0 0 not $replace and -e $new_filename

or 2 conditions

line l !l condition
64 0 21 shift() || 0
72 11 0 shift() || 0
87 12 0 delete $options{'name'} // die('No name in constructor')
92 12 0 $options{'share_root'} //= undef
101 0 12 $options{'is_ipc'} ||= 0
105 9 2 $stat[12] || 0
148 0 0 shift() || '%4Y-%2m-%2d %2H:%2M'
190 1 3 $exists || 0
283 0 0 shift() // die("Missing file name to normalize in share\n")
306 2 2 $params{'pattern'} || '*'
308 1 3 $params{'start_idx'} || 0
343 0 0 shift() // die("Missing new filename to rename\n")
344 0 0 shift() // 0

or 3 conditions

line l !l&&r !l&&!r condition
105 11 0 1 @stat || $is_srv
316 1 2 1 not $files or $start_idx == 0