Branch Coverage

blib/lib/File/RotateLogs.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
82 32 16 if ($$self{'fh'})
83 14 18 if ($fname eq $$self{'fname'} and $$self{'pid'} == $$) { }
88 18 0 if $fh
93 34 14 unless ($fh)
94 34 0 !(-f $fname) || $self->linkname && !(-l $self->linkname) ? :
95 0 34 unless open $fh, '>>:utf8:unix', $fname
96 34 0 if ($is_new)
100 0 33 if $@
104 0 47 unless $fh->print($log)
116 0 34 unless sysopen my $lockfh, $lock, 192
118 34 0 if ($self->linkname)
120 0 34 unless symlink $fname, $symlink
121 0 34 unless rename $symlink, $self->linkname
124 28 6 unless ($self->maxage)
132 4 2 unless (@to_unlink)
137 2 0 if ($self->sleep_before_remove) { }
158 0 1 if (not $daemon->Init)