Branch Coverage

blib/lib/Log/Syslog/Fast/PP.pm
Criterion Covered Total %
branch 34 36 94.4


line true false branch
34 1 37 unless defined $ref
39 1 37 unless defined $hostname
40 1 36 unless defined $sender
41 1 35 unless defined $name
58 9 26 if $@
69 4 81 if ($self->[8] == 1)
76 4 81 if ($self->[8] == 1)
80 8 77 if ($self->[8] == 2)
88 1 143 unless defined $_[1]
92 110 33 if ($proto == 1) { }
13 20 elsif ($proto == 0) { }
20 0 elsif ($proto == 2) { }
113 13 7 if ($@ or not $self->[4])
121 9 134 unless $self->[4]
143 1 9 unless defined $_[0]
150 1 9 unless defined $_[0]
171 0 33 if ($now != $_[0][5])
175 5 28 unless CORE::send $_[0][4], $_[0][6] . $_[1], 0