Branch Coverage

lib/Sisimai/Lhost/MessagingServer.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
18 61 868 if rindex($mhead->{'content-type'}, "Boundary_(ID_") != -1
19 61 868 if index($mhead->{'subject'}, "Delivery Notification: ") == 0
20 868 61 unless $match
34 61 1967 unless ($readcursor)
36 61 0 if index($e, $startingof->{'message'}[0]) == 0
39 441 1526 if ($readcursor & $indicators->{'deliverystatus'}) == 0 or $e eq ""
61 71 1455 if ('Sisimai::String'->aligned(\$e, [' Recipient address: ', '@', '.']) or 'Sisimai::String'->aligned(\$e, [' Original address: ', '@', '.'])) { }
61 1394 elsif (index($e, ' Date: ') == 0) { }
66 1328 elsif (index($e, ' Reason: ') == 0) { }
46 1282 elsif (index($e, ' Diagnostic code: ') == 0) { }
46 1236 elsif (index($e, ' Remote system: ') == 0) { }
66 5 66 unless "Sisimai::Address"->is_emailaddress($cv)
68 5 61 if ($v->{'recipient'} and $cv ne $v->{'recipient'})
103 46 0 unless $sessionlog->[0] eq "(TCP"
105 0 0 unless index($remotehost, ".") > 1
120 66 1170 if (index($e, 'Status: ') == 0) { }
51 1119 elsif (index($e, 'Arrival-Date: ') == 0) { }
61 1058 elsif (index($e, 'Reporting-MTA: ') == 0) { }
135 0 61 unless index($v->{'lhost'}, ".") > 0
139 0 61 unless $recipients