Branch Coverage

lib/Sisimai/Lhost/Office365.pm
Criterion Covered Total %
branch 59 66 89.3


line true false branch
28 151 244 if index($mhead->{'subject'}, "Undeliverable:") > -1
29 0 395 if $mhead->{'x-ms-exchange-message-is-ndr'}
30 11 384 if $mhead->{'x-microsoft-antispam-prvs'}
31 36 359 if $mhead->{'x-exchange-antispam-report-test'}
32 36 359 if $mhead->{'x-exchange-antispam-report-cfa-test'}
33 61 334 if $mhead->{'x-ms-exchange-crosstenant-originalarrivaltime'}
34 61 334 if $mhead->{'x-ms-exchange-crosstenant-fromentityheader'}
35 56 339 if $mhead->{'x-ms-exchange-transport-crosstenantheadersstamped'}
36 61 334 if grep {$_ =~ /$tryto/;} @{$$mhead{"received"};}
37 375 20 if (defined $mhead->{'message-id'})
39 16 359 if $mhead->{'message-id'} =~ /$tryto/
41 329 66 if $match < 2
106 327 5244 unless ($readcursor)
108 66 261 if $e =~ /$markingsof->{'message'}/
111 0 5244 unless $readcursor & $indicators->{'deliverystatus'}
112 780 4464 unless length $e
125 66 4398 if ($e =~ /\A.+[\@].+[<]mailto:(.+[\@].+)[>]\z/ or $e =~ /\ARecipient[ ]Address:[ ]+(.+)\z/) { }
61 4337 elsif ($e =~ /\AGenerating server: (.+)\z/) { }
128 0 66 if ($v->{'recipient'})
141 3624 713 if ($endoferror) { }
143 3199 425 unless my $f = "Sisimai::RFC1894"->match($e)
144 0 425 unless my $o = "Sisimai::RFC1894"->field($e)
145 0 425 unless exists $$fieldtable{$o->[0]}
146 110 315 if $o->[0] =~ /\A(?:diagnostic-code|final-recipient)\z/
149 150 165 unless $f == 1
153 66 647 if ($e =~ /$markingsof->{'error'}/) { }
160 389 258 unless $v->{'diagnosis'}
161 66 192 if ($e =~ /$markingsof->{'eoe'}/)
171 0 66 unless $recipients
178 11 55 if (not $e->{'status'} or substr($e->{'status'}, -4, 4) eq ".0.0")
185 51 15 unless $e->{'diagnosis'} =~ /$recommands->{$p}/
191 0 66 unless $e->{'status'}
194 1648 21 unless $e->{'status'} =~ /$f/