Branch Coverage

blib/lib/Log/Handler/Output/File.pm
Criterion Covered Total %
branch 27 86 31.4


line true false branch
250 0 3 if ($self->{'dateext'}) { }
0 3 elsif ($self->{'fileopen'}) { }
251 0 0 unless $self->_check_dateext
254 0 0 unless $self->_open
263 1 0 @_ > 1 ? :
265 0 1 if ($self->{'dateext'})
266 0 0 unless $self->_check_dateext
269 1 0 if (not $self->{'fileopen'}) { }
0 0 elsif ($self->{'reopen'}) { }
270 0 1 unless $self->_open
272 0 0 unless $self->_checkino
275 0 1 if ($self->{'filelock'})
276 0 0 unless flock $self->{'fh'}, 2
281 0 1 unless print {$self->{'fh'};} $message->{'message'}
283 0 1 if ($self->{'filelock'})
284 0 0 unless flock $self->{'fh'}, 8
288 1 0 unless ($self->{'fileopen'})
289 0 1 unless $self->close
298 0 0 if ($self->{'fileopen'})
299 0 0 unless $self->close
300 0 0 unless $self->_open
309 1 1 if ($self->{'fh'})
311 0 1 unless CORE::close $self->{'fh'}
324 0 1 if ($@)
341 0 1 if ($self->{'fileopen'})
342 0 0 unless $self->_open
356 0 3 if ($self->{'fh'})
369 0 1 unless sysopen my $fh, $self->{'filename'}, $self->{'mode'}, $self->{'permissions'}
371 0 1 if ($self->{'autoflush'})
377 0 1 if ($self->{'utf8'}) { }
0 1 elsif ($self->{'utf-8'}) { }
383 0 1 if ($self->{'reopen'})
396 0 0 if ($self->{'filename'} ne $filename)
398 0 0 if ($self->{'fileopen'})
399 0 0 unless $self->close
400 0 0 unless $self->_open
410 0 0 if (not -e $self->{'filename'} or $self->{'inode'} != (stat $self->{'filename'})[1])
411 0 0 unless $self->close
412 0 0 unless $self->_open
472 3 1 if (ref $opts{'filename'} eq 'ARRAY')
476 2 2 if ($opts{'mode'} eq 'append') { }
2 0 elsif ($opts{'mode'} eq 'excl') { }
0 0 elsif ($opts{'mode'} eq 'trunc') { }