Sisimai/Reason/OnHold.pm

filter: Statementstmt 100% 21 / 21 Branchbran 50.0% 3 / 6 Conditioncond 75.0% 3 / 4 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 8 / 8 Podpod 50.0% 2 / 4 totaltotal 84.4% 38 / 45 CC 6 SCAR 12.7
CC
6
Cov
87%
true
6.6
BEGIN
1.0
BEGIN
1.0
CRAP 3.6
« Sisimai/Reason/MailboxFull.pm ↑ Summary Sisimai/Rhost/Cloudflare.pm »
1 package Sisimai::Reason::OnHold;
2 5 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use Sisimai::Eb;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶sub text { $Sisimai::Eb::Re___1 }
Subroutine text: called CC=1 SCAR=0.0
Pod documented
8 4 ▶sub description { 'Sisimai could not decided the reason due to there is no (or less) detailed information for judging the reason' }
Subroutine description: called CC=1 SCAR=0.0
Pod undocumented
9 44 ▶sub match {
Subroutine match: called CC=1 SCAR=0.0
Pod documented
10 # Try to match that the given text and regular expressions
11 # @param [String] argv1 String to be matched with regular expressions
12 # @return [Integer] 0: Did not match
13 # 1: Matched
14 # @since v4.0.0
15 44 return 0;
16 }
17  
18 2 ▶sub true {
Subroutine true: called CC=6 SCAR=18.8
Pod undocumented
19 # On hold, Could not decide the bounce reason...
20 # @param [Sisimai::Fact] argvs Object to be detected the reason
21 # @return [Integer] 1: Status code is "OnHold"
22 # 0: is not "OnHold"
23 # @since v4.1.28
24 # @see http://www.ietf.org/rfc/rfc2822.txt
25 2 my $class = shift;
26 2 ▶ my $argvs = shift // return 0; return 0 unless $argvs->{'deliverystatus'};
Branch: 1 branch
BranchTrueFalseTotal
unless $argvs->{"deliverystatus"} 0 1 1
Condition100%2/2
shift() // (return 0)
l!l
11
MC/DC100%1/1
shift() // (return 0)
shift()
Truth table100%2/2
A
A= shift()
Aresult
11
00
27  
28 1 ▶ return 1 if $argvs->{'reason'} eq $Sisimai::Eb::Re___1;
Branch: 1 branch
BranchTrueFalseTotal
if $argvs->{"reason"} eq $Sisimai::Eb::Re___1 0 1 1
29 1 ▶ return 1 if (Sisimai::SMTP::Status->name($argvs->{'deliverystatus'}) || '') eq $Sisimai::Eb::Re___1;
Branch: 1 branch
BranchTrueFalseTotal
if ("Sisimai::SMTP::Status"->name($argvs->{"deliverystatus"}) || "") eq $Sisimai::Eb::Re___1 0 1 1
Condition50%1/2
'Sisimai::SMTP::Status'->name($argvs->{'deliverystatus'}) || ''
l!l
10
MC/DC0%0/1
'Sisimai::SMTP::Status'->name($argvs->{'deliverystatus'}) || ''
'Sisimai::SMTP::Status'->name($argvs->{'deliverystatus'})
Truth table50%1/2
A
A= 'Sisimai::SMTP::Status'->name($argvs->{'deliverystatus'})
Aresult
11
00
30 1 return 0
31 }
32  
33 5 1;
34 __END__
« Sisimai/Reason/MailboxFull.pm ↑ Summary Sisimai/Rhost/Cloudflare.pm »