Branch Coverage

lib/Sisimai/Lhost/Exchange2003.pm
Criterion Covered Total %
branch 55 66 83.3


line true false branch
22 22 928 if defined $mhead->{'x-ms-embedded-report'}
25 22 928 if $match
27 82 846 if (defined $mhead->{'x-mailer'})
32 5 77 if index($value, $tryto->[0]) == 0 or index($value, $tryto->[1]) == 0
33 5 77 if $match
36 5 918 if (defined $mhead->{'x-mimeole'})
38 0 5 if index($mhead->{'x-mimeole'}, "Produced By Microsoft Exchange") == 0
39 0 5 if $match
42 77 846 unless scalar @{$mhead->{'received'}}
45 1792 5 unless rindex($e, " with Internet Mail Service (") != -1
51 918 32 unless $match
102 82 392 unless ($readcursor)
104 32 50 if index($e, $startingof->{'message'}[0]) == 0
107 0 392 if ($readcursor & $indicators->{'deliverystatus'}) == 0 or $statuspart == 1
109 264 128 if ($connvalues == scalar keys %$connheader) { }
124 37 227 if ('Sisimai::String'->aligned(\$e, ['@', ' on '])) { }
37 190 elsif (index($e, ' ') == 0 and index($e, 'MSEXCH:') > 0) { }
127 5 32 if ($v->{'recipient'})
133 37 0 $p1 == -1 ? :
144 0 190 if $v->{'msexch'}
145 17 173 if (index($v->{'diagnosis'}, 'MSEXCH:') == 0) { }
163 32 96 if (index($e, ' To: ') == 0 or index($e, ' To: ') == 0) { }
32 64 elsif (index($e, ' Subject: ') == 0 or index($e, ' Subject: ') == 0) { }
32 32 elsif (index($e, ' Sent: ') == 0 or index($e, ' Sent: ') == 0) { }
165 0 32 if $connheader->{'to'}
171 0 32 if length $connheader->{'subject'}
178 0 32 if $connheader->{'date'}
184 0 32 unless $recipients
190 37 0 if (index($e->{'diagnosis'}, "MSEXCH:") == 0)
197 143 32 unless grep {$capturedcode eq $_;} @{$$errorcodes{$r}}
206 32 5 if $e->{'reason'}
207 0 5 unless exists $e->{'alterrors'} and length $e->{'alterrors'}
214 12 20 unless (length $emailparts->[1])