Branch Coverage

lib/Sisimai/Lhost/X4.pm
Criterion Covered Total %
branch 41 62 66.1


line true false branch
25 6 186 if index($mhead->{'subject'}, "failure notice") == 0
26 5 187 if index($mhead->{'subject'}, "Permanent Delivery Failure") == 0
27 0 192 if grep {$_ =~ /$tryto/;} @{$$mhead{"received"};}
28 181 11 unless $match
154 16 56 unless ($readcursor)
156 11 5 if $e =~ /$markingsof->{'message'}/
159 0 56 unless $readcursor & $indicators->{'deliverystatus'}
160 11 45 unless length $e
168 11 34 if ($e =~ /\A(?:To[ ]*:)?[<](.+[\@].+)[>]:[ \t]*\z/) { }
16 18 elsif (scalar @$dscontents == $recipients) { }
170 0 11 if ($v->{'recipient'})
180 0 16 unless length $e
182 0 16 if index($e, $startingof->{'error'}[0]) == 0
184 0 16 if $v->{'rhost'}
185 0 16 if $e =~ /$rehost/
188 0 11 unless $recipients
193 11 0 unless ($e->{'command'})
197 55 0 unless $e->{'diagnosis'} =~ /$resmtp->{$r}/
202 11 0 unless ($e->{'command'})
204 0 11 if $e->{'diagnosis'} =~ /$recommands/
209 0 11 if ($e->{'command'} eq 'MAIL') { }
0 11 elsif ($e->{'command'} eq 'HELO' or $e->{'command'} eq 'EHLO') { }
219 0 11 if ($e->{'diagnosis'} =~ /$reisonhold/) { }
227 0 55 if ($e->{'alterrors'})
229 0 0 unless grep {index($e->{'alterrors'}, $_) > -1;} @{$$messagesof{$r};}
232 0 55 if $e->{'reason'}
234 50 5 unless grep {index($e->{'diagnosis'}, $_) > -1;} @{$$messagesof{$r};}
239 6 5 unless ($e->{'reason'})
242 24 0 unless grep {index($e->{'diagnosis'}, $_) > -1;} @{$$failonldap{$r};}
248 6 5 unless ($e->{'reason'})
249 0 6 if index($e->{'diagnosis'}, $hasexpired) > -1