Branch Coverage

blib/lib/Log/Handler/Output/Sendmail.pm
Criterion Covered Total %
branch 15 52 28.8


line true false branch
222 3 0 @_ > 1 ? :
225 0 3 unless ($self->{'maxsize'})
226 0 0 if ($self->{'debug'})
230 0 0 if ($message->{'level'})
238 0 3 if ($length + $self->{'length'} > $self->{'maxsize'})
239 0 0 if ($self->{'debug'})
245 0 3 if ($message->{'level'} and not $self->{'level'}) { }
0 3 elsif ($self->{'level'} and $message->{'level'}) { }
251 0 0 if ($LEVEL_BY_STRING{$slevel} > $LEVEL_BY_STRING{$mlevel})
259 0 3 if ($self->{'debug'})
270 2 0 if ($TEST or not $self->{'message'})
283 0 1 if ($@)
325 0 0 if ($self->{'params'})
329 0 0 if ($self->{'debug'})
335 0 0 if ($self->{'level'})
340 0 0 unless open my $fh, "|$sendmail"
350 0 0 unless ($ret)
411 0 0 unless ($TEST or -x $options{'sendmail'})
415 2 0 if ($options{'subject'})
419 0 2 if (length $options{'subject'} > 998)
425 0 2 if (ref $options{'header'})
428 0 0 if (ref $options{'header'} eq 'HASH') { }
0 0 elsif (ref $options{'header'} eq 'ARRAY') { }
441 0 2 if ($options{'header'} and not $options{'header'} =~ /(?:\015|\012)\z/)
446 6 4 if ($options{$opt})
451 0 2 if ($options{'sender'})