Karmasphere/Parser/RBL/SimpleIP.pm

filter: Statementstmt 87.5% 14 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 76.0% 19 / 25 CC 1 SCAR 2.5
CC
1
Cov
88%
_type
2.0
my_format
2.0
BEGIN
1.0
CRAP 1.3
« Karmasphere/Parser/RBL/URL.pm ↑ Summary Karmasphere/Parser/Score/Domain.pm »
1 package Mail::Karmasphere::Parser::RBL::SimpleIP;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use base 'Mail::Karmasphere::Parser::RBL::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub _type { "ip4" }
Subroutine _type: not called CC=1 SCAR=6.9
8  
9 1 ▶sub _streams { qw(ip4) }
Subroutine _streams: called CC=1 SCAR=0.0
10  
11 0 ▶sub my_format { "rbl.simpleip" } # if the source table's "magic" field is rbl.simpleip, this module deals with it.
Subroutine my_format: not called CC=1 SCAR=6.9
Pod undocumented
12  
13 9 ▶sub tweaks {
Subroutine tweaks: called CC=1 SCAR=0.0
Pod undocumented
14 9 my $self = shift;
15
16 # we assume it's a url identity.
17  
18 9 my ($firstword) = split(' ', $_[0], 2);
19  
20 9 return ("ip4", 0, $firstword);
21 }
22  
23 2 1;
« Karmasphere/Parser/RBL/URL.pm ↑ Summary Karmasphere/Parser/Score/Domain.pm »