Branch Coverage

blib/lib/LockFile/NetLock.pm
Criterion Covered Total %
branch 1 48 2.0


line true false branch
46 0 1 if $is_win32
75 0 0 if $_[0] and $_[0] =~ /^\-/
85 0 0 unless {-dir => 1, -disconnect => 1, -ftp_heartbeat => 1, -heartbeat => 1, -host => 1, -idle => 1, -password => 1, -sleep => 1, -timeout => 1, -user => 1}->{$opt}
111 0 0 unless ($self)
114 0 0 if ($named_lock{$lock_key})
121 0 0 if -r $_
126 0 0 if $is_win32
129 0 0 if $$self{-'disconnect'}
136 0 0 if ($is_win32)
138 0 0 unless ($$self{'mutex'} = 'Win32::Mutex'->new(1, $$self{'mutex_name'}))
149 0 0 unless ($fh)
151 0 0 if $lock_key
157 0 0 unless ($from_netlock =~ /^\.*OK/)
180 0 0 unless ($self)
190 0 0 unless ($self and $$self{'filehandle'})
192 0 0 if ($lock_key) { }
198 0 0 if $self
202 0 0 if ($is_win32)
203 0 0 unless ($$self{'mutex'}->release)
209 0 0 unless ($close_rc = close $$self{'filehandle'})
213 0 0 if ($?)
215 0 0 if ($reaped_rc & 1) { }
222 0 0 unless $close_rc
246 0 0 if $is_win32 and $$self{'is_locked'}