Branch Coverage

lib/Sisimai/Lhost/qmail.pm
Criterion Covered Total %
branch 55 60 91.6


line true false branch
25 82 197 if $mhead->{'subject'} eq "failure notice"
26 57 222 if grep {$_ =~ /$tryto/;} @{$$mhead{"received"};}
27 196 83 unless $match
135 745 385 unless ($readcursor)
137 55 690 if index($e, $startingof->{'message'}[0]) == 0
140 0 385 unless $readcursor & $indicators->{'deliverystatus'}
141 55 330 unless length $e
149 60 270 if ($e =~ /\A(?:To[ ]*:)?[<](.+[\@].+)[>]:[ \t]*\z/) { }
160 110 elsif (scalar @$dscontents == $recipients) { }
151 5 55 if ($v->{'recipient'})
161 0 160 unless length $e
163 39 121 if index($e, $startingof->{'error'}[0]) == 0
165 5 155 if $v->{'rhost'}
166 45 110 if $e =~ /$rehost/
169 28 55 unless $recipients
174 60 0 unless ($e->{'command'})
178 128 39 unless $e->{'diagnosis'} =~ /$resmtp->{$r}/
183 21 39 unless ($e->{'command'})
185 6 15 if $e->{'diagnosis'} =~ /$recommands/
190 5 55 if ($e->{'command'} eq 'MAIL') { }
5 50 elsif ($e->{'command'} eq 'HELO' or $e->{'command'} eq 'EHLO') { }
200 5 45 if ($e->{'diagnosis'} =~ /$reisonhold/) { }
208 164 115 if ($e->{'alterrors'})
210 159 5 unless grep {index($e->{'alterrors'}, $_) > -1;} @{$$messagesof{$r};}
213 5 115 if $e->{'reason'}
215 105 10 unless grep {index($e->{'diagnosis'}, $_) > -1;} @{$$messagesof{$r};}
220 30 15 unless ($e->{'reason'})
223 120 0 unless grep {index($e->{'diagnosis'}, $_) > -1;} @{$$failonldap{$r};}
229 30 15 unless ($e->{'reason'})
230 0 30 if index($e->{'diagnosis'}, $hasexpired) > -1