Branch Coverage

lib/Sisimai/Lhost/MessageLabs.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
24 202 16 unless defined $mhead->{'x-msg-ref'}
25 0 16 unless rindex($mhead->{'from'}, "MAILER-DAEMON\@messagelabs.com") > -1
26 0 16 unless index($mhead->{'subject'}, "Mail Delivery Failure") == 0
50 316 145 unless ($readcursor)
52 16 300 if index($e, $startingof->{'message'}[0]) == 0
55 0 145 unless $readcursor & $indicators->{'deliverystatus'}
56 16 129 unless length $e
58 117 12 if (my $f = 'Sisimai::RFC1894'->match($e)) { }
60 0 117 unless my $o = "Sisimai::RFC1894"->field($e)
63 16 101 if ($o->[-1] eq 'addr') { }
16 85 elsif ($o->[-1] eq 'code') { }
66 16 0 if ($o->[0] eq 'final-recipient') { }
68 0 16 if ($v->{'recipient'})
87 0 85 unless exists $$fieldtable{$o->[0]}
90 53 32 unless $f == 1
95 6 6 unless index($p, "Diagnostic-Code:") == 0
96 6 0 unless $e =~ /\A[ \t]+(.+)\z/
103 0 16 unless $recipients
113 6 16 unless $e->{'diagnosis'} =~ /$refailures->{$r}/