Branch Coverage

blib/lib/DBM/Deep/Storage/File.pm
Criterion Covered Total %
branch 37 48 77.0


line true false branch
58 4203 453 unless exists $args->{$param}
62 4 384 if ($self->{'fh'} and not $self->{'file_offset'})
66 383 5 unless $self->{'fh'}
88 398 0 if (not -e $self->{'file'} or -w _) { }
96 1 397 unless sysopen $fh, $self->{'file'}, $flags
103 397 0 if ($self->{'autoflush'})
123 393 22 if ($self->{'fh'})
142 0 0 unless $self->{'fh'}
160 376 2555 unless (defined $self->{'inode'})
188 25972 0 if (defined $loc)
198 0 25972 unless print $fh @_
220 109864 519 if (defined $loc)
243 0 380 unless $self
311 0 2073 unless defined $fh
312 0 2073 unless defined fileno $fh
335 0 10429 unless defined $type
339 0 10429 if ($^O eq "MSWin32" or $^O eq "cygwin")
343 1 10428 unless (defined $self->{'fh'})
348 10425 3 if ($self->{'locking'})
349 5508 4917 unless ($self->{'locked'})
358 12 5496 if (defined $self->{'inode'} and $stats[1] != $self->{'inode'})
382 6 10424 unless (defined $self->{'fh'})
384 10418 6 if ($self->{'locking'} and $self->{'locked'} > 0)
387 5501 4917 unless ($self->{'locked'})