Branch Coverage

lib/Sisimai/Lhost/Gmail.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
66 729 312 unless rindex($mhead->{'from'}, "") != -1
67 0 312 unless index($mhead->{'subject'}, "Delivery Status Notification") != -1
158 12703 478 unless ($readcursor)
160 76 12627 if index($e, $startingof->{'message'}[0]) == 0
162 12805 376 if ($readcursor & $indicators->{'deliverystatus'}) == 0 or $e eq ""
181 76 300 if (index($e, ' ') == 0 and index($e, '@') > 0) { }
183 0 76 if ($v->{'recipient'})
190 0 76 unless "Sisimai::Address"->is_emailaddress($r)
198 236 76 unless $recipients
204 11 65 if ("Sisimai::String"->aligned(\$e->{'diagnosis'}, [" by ", ". [", "]. "]))
212 11 0 if "Sisimai::RFC1123"->is_internethost($hostname)
218 46 30 if $p1 < 0
219 0 30 if $p1 < 0
220 0 30 if $p1 > $p2
222 0 30 unless $cu
228 46 30 unless $e->{'reason'}
232 10 20 if length $e->{'status'} == 0 or index($e->{'status'}, ".0") > 0