Branch Coverage

lib/Sisimai/Lhost/Outlook.pm
Criterion Covered Total %
branch 38 46 82.6


line true false branch
22 331 286 if index($mhead->{'subject'}, "Delivery Status Notification") > -1
23 31 586 if $mhead->{'x-message-delivery'}
24 31 586 if $mhead->{'x-message-info'}
25 20 597 if grep {rindex($_, ".hotmail.com") > -1;} @{$$mhead{"received"};}
26 576 41 if $match < 2
50 164 619 unless ($readcursor)
52 41 123 if index($e, $startingof->{'message'}[0]) == 0
55 0 619 unless $readcursor & $indicators->{'deliverystatus'}
56 179 440 unless length $e
58 297 143 if (my $f = 'Sisimai::RFC1894'->match($e)) { }
60 0 297 unless my $o = "Sisimai::RFC1894"->field($e)
63 46 251 if ($o->[-1] eq 'addr') { }
36 215 elsif ($o->[-1] eq 'code') { }
66 46 0 if ($o->[0] eq 'final-recipient') { }
68 5 41 if ($v->{'recipient'})
87 0 215 unless exists $$fieldtable{$o->[0]}
90 92 123 unless $f == 1
95 143 0 unless index($p, "Diagnostic-Code:") == 0
96 0 0 unless $e =~ /\A[ \t]+(.+)\z/
103 0 41 unless $recipients
111 10 36 unless ($e->{'diagnosis'})
113 5 5 if ($e->{'action'} eq 'delayed') { }
126 77 10 unless grep {index($e->{'diagnosis'}, $_) > -1;} @{$$messagesof{$r};}