Branch Coverage

blib/lib/Log/Dispatch/FileShared.pm
Criterion Covered Total %
branch 15 56 26.7


line true false branch
71 0 1 if ($$self{'close_after_write'}) { }
77 0 1 if ($p{'close_after_modperl_request'})
79 0 0 if ($$self{'close_after_write'})
84 0 0 unless ($MOD_PERL)
89 0 0 if ($MOD_PERL == 2) { }
0 0 elsif ($MOD_PERL > 2) { }
95 0 0 if ($@)
114 0 0 if (defined $weakself)
131 2 0 if ($use_flock)
132 0 2 unless ($self->_lock_handle($h))
140 0 2 if ($$self{'close_after_write'}) { }
2 0 elsif ($use_flock) { }
154 1 1 unless ($h)
158 0 1 if (defined $new_umask)
162 1 0 if ($$self{'mode'} eq '>>')
166 0 1 if (defined $old_umask)
169 0 1 unless ($rc)
172 1 0 if ($$self{'autoflush'})
175 0 0 if ($MOD_PERL and my $cleanup_handler = $$self{'modperl_cleanup_handler'} and not $$self{'modperl_cleanup_handler_pushed'})
176 0 0 if ($MOD_PERL == 2) { }
0 0 elsif ($MOD_PERL == 1) { }
197 1 0 if (my $h = $$self{'h'})
210 0 2 unless (flock $h, 6)
212 0 0 if ($SIG{'ALRM'} and $SIG{'ALRM'} ne 'DEFAULT')
221 0 0 if (flock $h, 6)
227 0 0 if ($locked)
242 0 0 if ($@)
244 0 0 if ($@ eq "Log::Dispatch::FileShared.ALRM\n") { }