Branch Coverage

lib/Sisimai/Lhost/V5sendmail.pm
Criterion Covered Total %
branch 35 46 76.0


line true false branch
19 17 889 unless $mhead->{'subject'}
20 808 81 if index($mhead->{'subject'}, "Returned mail: ") != 0
46 45 36 unless length $emailparts->[1] > 0
60 36 226 unless ($readcursor)
62 36 0 if index($e, $startingof->{'message'}[0]) != -1
65 0 226 if ($readcursor & $indicators->{'deliverystatus'}) == 0 or $e eq ""
74 35 191 if index($e, ">>> ") == 0
76 85 141 if ('Sisimai::String'->aligned(\$e, [' <', '@', '>...']) or index(uc $e, '>>> RCPT TO:') != -1) { }
84 15 70 if ($remotehost eq "")
90 25 45 if ($cv eq $v->{'recipient'} or $curcommand eq 'MAIL' and index($e, '<<< ') == 0) { }
101 25 20 if ($v->{'recipient'})
115 35 106 if (index($e, $startingof->{'error'}[0]) != -1) { }
118 35 0 if "Sisimai::RFC1123"->is_internethost($cv)
122 45 61 if (index($e, '>>> ') == 0 or index($e, '<<< ') == 0) { }
138 16 20 if ($recipients == 0)
142 6 10 unless "Sisimai::Address"->is_emailaddress($cv)
151 6 10 if ($recipients == 0)
156 6 0 if ($p1 > 0)
159 6 0 unless "Sisimai::Address"->is_emailaddress($cv)
165 0 30 unless $recipients
176 55 0 if index($e->{'recipient'}, "\@") > 0
177 0 0 if $p1 == -1
178 0 0 if $p2 == -1