Branch Coverage

lib/Sisimai/Reason.pm
Criterion Covered Total %
branch 45 52 86.5


line true false branch
41 53 3671 if $argv1 eq "undefined" or $argv1 eq "onhold" or $argv1 eq ""
76 0 2252 if not exists $$GetRetried{$argvs->{'reason'}} and $argvs->{'reason'}
77 2 2493 if substr($argvs->{'deliverystatus'}, 0, 2) eq "2."
82 2422 71 if ($codeformat eq "SMTP" or $codeformat eq "")
90 25469 1835 unless $p->true($argvs)
96 658 1835 unless ($reasontext or $reasontext eq "undefined")
99 0 658 if $reasontext eq "undefined"
100 52 606 if $argvs->{'action'} eq "delayed"
101 616 42 if $reasontext
105 0 42 if "Sisimai::Reason::Vacation"->match(lc $issuedcode)
106 32 10 if $issuedcode
118 30 628 if $argvs->{'reason'}
126 388 240 $reasontext eq '' ? :
127 241 387 if exists $GetRetried->{$reasontext} or $codeformat ne "SMTP"
136 5674 448 unless $p->match($issuedcode)
140 510 83 if $reasontext
144 0 83 if ($code2digit eq '5.6' or $code2digit eq '4.6') { }
0 83 elsif ($code2digit eq '5.7' or $code2digit eq '4.7') { }
15 68 elsif (CORE::index($codeformat, 'X-UNIX') == 0) { }
159 0 68 if "Sisimai::Reason::SyntaxError"->true($argvs)
161 15 68 if $reasontext
164 5 63 if (CORE::index($actiontext, 'delayed') == 0 or CORE::index($actiontext, 'expired') == 0) { }
171 21 42 if ($thecommand eq "EHLO" or $thecommand eq "HELO")
198 2147 144 unless $p->match($issuedcode)
202 144 44 if $reasontext
204 0 44 if (CORE::index(uc $issuedcode, 'X-UNIX; ') != -1) { }