Branch Coverage

blib/lib/File/RotateLogs.pm
Criterion Covered Total %
branch 24 36 66.6


line true false branch
84 34 17 if ($self->{'fh'})
85 16 18 if ($fname eq $self->{'fname'} and $self->{'pid'} == $$) { }
90 18 0 if $fh
95 35 16 unless ($fh)
96 35 0 !(-f $fname) || $self->linkname && !(-l $self->linkname) ? :
97 4 31 unless -e File::Basename::dirname($fname)
98 0 35 unless open $fh, '>>:utf8:unix', $fname
99 35 0 if ($is_new)
103 0 35 if $@
107 0 51 unless $fh->print($log)
119 0 35 unless sysopen my $lockfh, $lock, 192
121 35 0 if ($self->linkname)
123 0 35 unless symlink $fname, $symlink
124 0 35 unless rename $symlink, $self->linkname
127 32 3 unless ($self->maxage)
135 2 1 unless (@to_unlink)
140 1 0 if ($self->sleep_before_remove) { }
161 0 1 if (not $daemon->Init)