Branch Coverage

blib/lib/Log/Dispatch/Syslog.pm
Criterion Covered Total %
branch 6 16 37.5


line true false branch
60 0 3 if ($self->{'lock'})
61 0 0 unless ($threads_loaded)
66 0 0 unless eval 'use threads; use threads::shared; 1;'
96 0 3 if $self->{'lock'}
100 2 1 if (defined $self->{'socket'})
106 0 2 ref $self->{'socket'} && &reftype($self->{'socket'}) eq 'ARRAY' ? :
118 3 0 if &try(sub { if (defined $self->{'socket'}) { Sys::Syslog::setlogsock(ref $self->{'socket'} && &reftype($self->{'socket'}) eq 'ARRAY' ? @{$$self{'socket'};} : $self->{'socket'}); } ; Sys::Syslog::openlog($self->{'ident'}, $self->{'logopt'}, $self->{'facility'}); Sys::Syslog::syslog($priorities[$pri], $p{'message'}); Sys::Syslog::closelog(); 1; } )
120 0 0 if $@ and $^W