AlJazeera/Base.pm

filter: Statementstmt 84.6% 22 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod n/a totaltotal 82.3% 28 / 34 CC 2 SCAR 4.1
CC
2
Cov
85%
__ANON__
2.3
__ANON__
2.0
__ANON__
2.0
CRAP 1.5
↑ Summary AlJazeera.pm »
1 package Feed::Data::AlJazeera::Base;
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  
6 2 ▶use Rope;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Rope::Autoload;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use Feed::Data;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 property url => (
11 initable => 1,
12 enumerable => 1,
13 writeable => 1,
14 );
15  
16 property feed => (
17 initable => 1,
18 enumerable => 1,
19 writeable => 1,
20 builder => sub {
21 5 ▶ for my $key (qw/render all count delete get pop insert is_empty title link description rss_channel/) {
Subroutine __ANON__: called CC=2 SCAR=8.1
22 $_[0]->{properties}->{$key} = {
23 enumerable => 1,
24 index => ++$_[0]->{keys},
25 value => sub {
26 0 ▶ my ($self, $param) = @_;
Subroutine __ANON__: not called CC=1 SCAR=6.9
27 0 $self->feed->$key($param)
28 }
29 60 };
30 }
31 5 Feed::Data->new();
32 }
33 2 );
34  
35 function parse => sub {
36 0 ▶ my ($self) = @_;
Subroutine __ANON__: not called CC=1 SCAR=6.9
37 0 $self->feed->parse($self->url);
38 2 };
39  
40 2 1;
↑ Summary AlJazeera.pm »