Branch Coverage

lib/Sisimai/Lhost/Exchange2007.pm
Criterion Covered Total %
branch 37 44 84.0


line true false branch
67 175 881 if grep {index($mhead->{'subject'}, $_) != -1;} @$emailtitle
68 55 1001 if grep {index($mhead->{'from'}, $_) > 1;} @$mailsender
69 53 1003 if grep {index($$mbody, $_) > 1;} @{$$startingof{"error"}}
70 108 948 if grep {index($$mbody, $_) > 1;} @{$$startingof{"message"}}
71 103 953 if defined $mhead->{'content-language'}
72 948 108 if $proceedsto < 2
85 2436 695 unless ($readcursor)
87 108 2328 if grep {index($e, $_) == 0;} @{$$startingof{"message"}}
90 221 474 if ($readcursor & $indicators->{'deliverystatus'}) == 0 or $e eq ""
102 97 377 if (index($e, ' ') == -1 and index($e, '@') > 1) { }
104 0 97 if ($v->{'recipient'})
114 108 269 if (grep {index($e, $_) == 0;} @{$$startingof{'rhost'}}) { }
118 108 0 if "Sisimai::RFC1123"->is_internethost($cv)
125 5 146 if ($cr ne "" or $cs ne "" or index($e, "Remote Server ") != -1)
144 0 11 if $p1 < 0
145 0 11 if $p2 < 0
146 0 11 if $p3 < 0
149 0 11 unless "Sisimai::Address"->is_emailaddress($cv)
153 0 108 unless $recipients
159 53 115 if $p0 > -1
161 55 53 if $p0 < 0
166 262 53 unless $cv eq $r