Condition Coverage

lib/SMB/File.pm
Criterion Covered Total %
condition 20 40 50.0


and 3 conditions

line !l l&&!r l&&r condition
103 0 1 13 !$is_ipc && $filename && -e $filename
104 14 0 0 $is_ipc && $name =~ /^(?:srvsvc|wkssvc)$/
379 0 0 0 not $replace and -e $new_filename

or 2 conditions

line l !l condition
64 0 21 shift() || 0
72 13 0 shift() || 0
87 14 0 delete $options{'name'} // die('No name in constructor')
92 14 0 $options{'share_root'} //= undef
102 0 14 $options{'is_ipc'} ||= 0
106 10 3 $stat[12] || 0
151 0 0 shift() || '%4Y-%2m-%2d %2H:%2M'
209 1 3 $exists || 0
304 0 0 shift() // die("Missing file name to normalize in share\n")
327 2 3 $params{'pattern'} || '*'
328 1 4 $params{'start_idx'} || 0
332 4 1 $self->{'files'} ||= {}
368 0 0 shift() // die("Missing new filename to rename\n")
369 0 0 shift() // 0

or 3 conditions

line l !l&&r !l&&!r condition
106 13 0 1 @stat || $is_svc