SimpleClient/Result.pm

filter: Statementstmt 42.8% 12 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 3 / 12 Podpod 100% 9 / 9 totaltotal 48.9% 24 / 49 CC 1 SCAR 5.6
CC
1
Cov
43%
new
2.0
is_spam
2.0
score
2.0
CRAP 1.8
« SimpleClient.pm ↑ Summary
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package Mail::SpamAssassin::SimpleClient::Result;
4 {
5 2 $Mail::SpamAssassin::SimpleClient::Result::VERSION = '0.102';
6 }
7 # ABSTRACT: the results of checking a message
8  
9 2 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
13 0 my ($class, $arg) = @_;
14  
15 0 bless $arg => $class;
16 }
17  
18  
19 0 ▶sub is_spam { $_[0]->{is_spam} }
Subroutine is_spam: not called CC=1 SCAR=6.9
Pod documented
20  
21  
22 0 ▶sub score { $_[0]->{score} }
Subroutine score: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub threshold { $_[0]->{threshold} }
Subroutine threshold: not called CC=1 SCAR=6.9
Pod documented
25  
26  
27 0 ▶sub sa_version { $_[0]->{version} }
Subroutine sa_version: not called CC=1 SCAR=6.9
Pod documented
28  
29  
30 0 ▶sub tests {
Subroutine tests: not called CC=1 SCAR=6.9
Pod documented
31 0 my ($self) = @_;
32  
33 0 return keys %{ $self->{tests} };
34 }
35  
36  
37 0 ▶sub test_scores {
Subroutine test_scores: not called CC=1 SCAR=6.9
Pod documented
38 0 my ($self) = @_;
39  
40 0 return %{ $self->{tests} };
41 }
42  
43  
44 0 ▶sub test_descriptions {
Subroutine test_descriptions: not called CC=1 SCAR=6.9
Pod documented
45 0 my ($self) = @_;
46  
47 0 return %{ $self->{test_desc} };
48 }
49  
50  
51 0 ▶sub email {
Subroutine email: not called CC=1 SCAR=6.9
Pod documented
52 $_[0]->{email}
53 0 }
54  
55 2 1;
56  
57 __END__
« SimpleClient.pm ↑ Summary