Branch Coverage

lib/Sisimai/Lhost/mFILTER.pm
Criterion Covered Total %
branch 33 40 82.5


line true false branch
28 22 881 if defined $mhead->{'x-mailer'} and $mhead->{'x-mailer'} eq "m-FILTER"
29 27 876 if grep {index($$mbody, $_) > 1;} @$boundaries
30 27 876 if grep {index($$mbody, $_) > 1;} @{$$startingof{"command"}}
31 27 876 if grep {index($$mbody, $_) > 1;} @{$$startingof{"error"}}
32 876 27 unless $proceedsto
43 162 189 unless ($readcursor)
45 27 15 if (index($e, "\@") > 1 and index($e, " ") == -1 and "Sisimai::Address"->is_emailaddress($e))
49 216 135 if ($readcursor & $indicators->{'deliverystatus'}) == 0 or $e eq ""
68 27 108 if (index($e, '@') > 0 and index($e, ' ') == -1) { }
27 81 elsif (length $e == 4 and index($e, ' ') == -1) { }
71 0 27 if ($v->{'recipient'})
82 0 27 if $v->{'command'}
83 27 0 if $markingset->{'command'}
87 27 54 if ($e eq $startingof->{'error'}[0]) { }
27 27 elsif ($e eq $startingof->{'command'}[0]) { }
97 0 27 if index($e, "-") == 0
98 0 27 if $v->{'diagnosis'}
103 0 27 unless $recipients
109 0 27 unless scalar @{$mhead->{'received'}}
116 27 27 unless rindex($ee, ".") != -1