Branch Coverage

blib/lib/IO/LockedFile.pm
Criterion Covered Total %
branch 25 48 52.0


line true false branch
33 12 27 if ref $_[0] eq 'HASH'
35 0 39 if (exists $$options{'scheme'}) { }
39 0 elsif ($class eq 'IO::LockedFile') { }
39 0 0 if $@
52 39 0 if (@_)
53 9 30 unless $self->open(@_)
66 23 16 if (scalar @_ == 1) { }
7 9 elsif ($_[1] =~ /^\d+$/) { }
70 0 23 if (substr($_[0], 0, 1) eq '|' or substr($_[0], -1, 1) eq '|')
93 0 39 unless $self->SUPER::open(@_)
95 39 0 if ($self->should_lock)
96 9 30 unless $self->lock
127 30 9 if $self->opened and $self->have_lock
187 0 0 unless ($was_locked)
188 0 0 unless $self->lock
191 0 0 unless $was_locked
204 0 0 unless ($was_locked)
205 0 0 unless $self->lock
208 0 0 unless $was_locked
238 202 150 if (exists $Options{$self} and exists $Options{$self}{$key}) { }
75 75 elsif (ref $self) { }
75 0 elsif ($self ne 'IO::LockedFile') { }
272 0 7 if (@_ == 1) { }
283 0 7 if $@