Branch Coverage

blib/lib/Log/File/Rolling.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
27 0 3 if $self->{'timezone'} ne 'localtime' and $self->{'timezone'} ne 'gmtime'
31 1 2 if (exists $p{'current_symlink'})
46 0 4 if ($self->_createFilename)
50 3 1 if (defined $self->{'fh'} and ($self->{'rolling_fh_pid'} || '') eq $$ and defined fileno $self->{'fh'}) { }
53 0 3 if (not defined $finode or $inode != $finode) { }
2 1 elsif (not $self->{'current_symlink_inited'}) { }
76 0 4 unless open my $fh, '>>:raw', $self->{'filename'}
85 5 1 unless exists $self->{'current_symlink'}
89 1 0 if (not defined $current_symlink_value or $current_symlink_value ne $self->{'filename'})
93 0 1 unless symlink $self->{'filename'}, $temp_symlink_file
96 0 1 unless (rename $temp_symlink_file, $self->{'current_symlink'})
125 4 3 if defined $self->{'current_filename_time'} and $time == $self->{'current_filename_time'}