Branch Coverage

lib/Sisimai/Lhost/MailMarshalSMTP.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
18 206 6 unless index($mhead->{'subject'}, "Undeliverable Mail: \"") == 0
34 6 0 if (my $boundary00 = "Sisimai::MIME"->boundary($mhead->{'content-type'}, 1))
43 12 120 unless ($readcursor)
45 6 6 if index($e, $startingof->{'message'}[0]) == 0
47 6 126 unless $readcursor & $indicators->{'deliverystatus'}
61 6 120 if ($e =~ /\A[ \t]{4}([^ ]+[\@][^ ]+)\z/) { }
64 0 6 if ($v->{'recipient'})
74 6 114 if ($e eq $startingof->{'error'}[0]) { }
24 90 elsif ($v->{'diagnosis'} and not $endoferror) { }
82 6 18 if index($e, $startingof->{'rcpts'}[0]) == 0
83 6 18 if $endoferror
96 6 84 if ($e =~ /\AOriginal Sender:[ \t]+[<](.+)[>]\z/) { }
6 78 elsif ($e =~ /\ASender-MTA:[ \t]+[<](.+)[>]\z/) { }
6 72 elsif ($e =~ /\AReporting-MTA:[ \t]+[<](.+)[>]\z/) { }
12 60 elsif ($e =~ /\A\s+(From|Subject):\s*(.+)\z/) { }
118 0 6 unless $recipients