Branch Coverage

lib/Petal/Mail.pm
Criterion Covered Total %
branch 36 40 90.0


line true false branch
144 1 2 unless $authorized_sender
147 0 2 unless open SENDMAIL, "| $Sendmail -f $authorized_sender"
160 8 0 ref $_ && $$_{'_tag'} eq 'Message' ? :
185 86 110 ref $_ && !($$_{'_tag'} =~ /^body$/i) ? :
192 8 78 $tag =~ /^from$/i ? :
223 1 203 ref $_ ? :
234 8 188 ref $_ && $$_{'_tag'} =~ /^body$/i ? :
256 7 137 ref $_ ? :
144 36 unless ($self->__Body_P($node) or $self->__Body_DT($node) or $self->__Body_DD($node) or $self->__Body_PRE($node))
269 137 15 unless ref $node
270 7 8 unless $$node{'_tag'} =~ /^pre$/i
282 137 150 unless ref $node
283 71 79 unless $$node{'_tag'} =~ /^p$/i
300 137 71 unless ref $node
301 43 28 unless $$node{'_tag'} =~ /^dt$/i
314 137 43 unless ref $node
315 15 28 unless $$node{'_tag'} =~ /^dd$/i
351 92 1518 if (length $potential_line > $Line_Wrap) { }
353 0 92 if (@next_line == 0) { }
370 107 0 unless @next_line == 0