Sisimai/Reason/Suppressed.pm

filter: Statementstmt 73.6% 14 / 19 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 75.0% 6 / 8 Podpod 50.0% 2 / 4 totaltotal 61.1% 22 / 36 CC 3 SCAR 14.8
CC
3
Cov
61%
true
12.0
text
2.0
BEGIN
1.0
CRAP 4.4
« Sisimai/Mail/Memory.pm ↑ Summary Sisimai/Rhost/Facebook.pm »
1 package Sisimai::Reason::Suppressed;
2 33 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 33 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 33 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 33 ▶use Sisimai::Eb;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub text { $Sisimai::Eb::ReSTOP }
Subroutine text: not called CC=1 SCAR=6.9
Pod documented
8 2 ▶sub description { "Email was not delivered due to being listed in the suppression list of MTA" }
Subroutine description: called CC=1 SCAR=0.0
Pod undocumented
9 442 ▶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 v5.2.0
15 442 return 0;
16 }
17  
18 0 ▶sub true {
Subroutine true: not called CC=3 SCAR=24.8
Pod undocumented
19 # Whether the address is is the suppression list or not
20 # @param [Sisimai::Fact] argvs Object to be detected the reason
21 # @return [Integer] 1: The address is in the suppression list
22 # 0: is not in the suppression list
23 # @since v5.2.0
24 # @see http://www.ietf.org/rfc/rfc2822.txt
25 0 my $class = shift;
26 0 ▶ my $argvs = shift // return 0;
Condition0%0/2
shift() // (return 0)
l!l
00
MC/DC0%0/1
shift() // (return 0)
shift()
Truth table0%0/2
A
A= shift()
Aresult
11
00
27  
28 0 ▶ return 1 if $argvs->{'reason'} eq $Sisimai::Eb::ReSTOP;
Branch: 1 branch
BranchTrueFalseTotal
if $argvs->{"reason"} eq $Sisimai::Eb::ReSTOP 0 0 0
29 0 return __PACKAGE__->match(lc $argvs->{'diagnosticcode'});
30 }
31  
32 33 1;
33 __END__
« Sisimai/Mail/Memory.pm ↑ Summary Sisimai/Rhost/Facebook.pm »