Branch Coverage

lib/Sisimai/Lhost/Gmail.pm
Criterion Covered Total %
branch 30 36 83.3


line true false branch
66 207 76 unless rindex($mhead->{'from'}, "") > -1
67 0 76 unless index($mhead->{'subject'}, "Delivery Status Notification") > -1
170 196 478 unless ($readcursor)
172 76 120 if index($e, $startingof->{'message'}[0]) == 0
174 120 554 unless $readcursor & $indicators->{'deliverystatus'}
175 178 376 unless length $e
194 76 300 if ($e =~ /\A[ \t]+([^ ]+[\@][^ ]+)\z/) { }
196 0 76 if ($v->{'recipient'})
203 0 76 unless "Sisimai::RFC5322"->is_emailaddress($r)
211 0 76 unless $recipients
216 76 0 unless ($e->{'rhost'})
218 11 65 if ($e->{'diagnosis'} =~ /[ \t]+by[ \t]+([^ ]+)[.][ \t]+\[(\d+[.]\d+[.]\d+[.]\d+)\][.]/)
223 11 0 if ($hostname =~ /[-0-9a-zA-Z]+[.][a-zA-Z]+\z/) { }
233 30 46 $e->{'diagnosis'} =~ /[(]state[ ](\d+)[)][.]/ ? :
234 30 46 if (exists $statetable->{$statecode0}) { }
242 62 30 unless grep {index($e->{'diagnosis'}, $_) > -1;} @{$$messagesof{$r};}
247 16 60 unless $e->{'reason'}
251 40 20 unless $e->{'status'} =~ /\A[45][.][1-7][.][1-9]\z/