Branch Coverage

lib/Sisimai/Lhost/Gmail.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
66 731 312 unless rindex($mhead->{'from'}, "") != -1
67 0 312 unless index($mhead->{'subject'}, "Delivery Status Notification") != -1
169 12703 478 unless ($readcursor)
171 76 12627 if index($e, $startingof->{'message'}[0]) == 0
173 12805 376 if ($readcursor & $indicators->{'deliverystatus'}) == 0 or $e eq ""
192 76 300 if (index($e, ' ') == 0 and index($e, '@') > 0) { }
194 0 76 if ($v->{'recipient'})
201 0 76 unless "Sisimai::Address"->is_emailaddress($r)
209 236 76 unless $recipients
216 11 65 if ("Sisimai::String"->aligned(\$e->{'diagnosis'}, [" by ", ". [", "]. "]))
224 11 0 if "Sisimai::RFC1123"->is_internethost($hostname)
230 46 30 if $p1 < 0
231 0 30 if $p1 < 0
232 0 30 if $p1 > $p2
234 0 30 unless $cu
240 46 30 unless ($e->{'reason'})
244 56 30 unless grep {index($e->{'diagnosis'}, $_) != -1;} @{$$messagesof{$r}}
249 16 60 unless $e->{'reason'}
253 40 20 if length $e->{'status'} == 0 or index($e->{'status'}, ".0") > 0