Branch Coverage

blib/lib/Tie/Syslog.pm
Criterion Covered Total %
branch 27 52 51.9


line true false branch
58 2 2 if (ref $_[0] eq 'HASH') { }
71 1 1 @_ ? :
73 0 2 if @_
74 0 2 if @_
86 2 6 unless $$params{$_}
91 2 4 unless $$params{$_} =~ /^LOG_/
107 0 27 if @_
135 0 4 if $@
141 0 4 if (my $pkg = ref $_[0]) { }
161 1 6 unless $$self{$_}
178 5 0 unless $open_connections{$f}
181 0 5 if $@
195 4 5 unless $$self{'is_open'}
197 5 0 unless (scalar keys %open_connections > 1)
201 0 5 if $@
210 0 5 unless $$self{'is_open'}
212 0 5 if $@
218 0 1 unless $$self{'is_open'}
221 0 1 if $@
248 0 0 $$self{'is_open'} ? :
0 0 defined $fd ? :
254 0 7 unless $self
261 0 3 unless $self
272 0 0 if $name eq 'DESTROY'
277 0 0 ref $self ? :
278 0 0 if $errors_are_fatal