FeedAggregator/Feed.pm

filter: Statementstmt 61.9% 13 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 37.5% 3 / 8 Podpod n/a totaltotal 55.1% 16 / 29 CC 1 SCAR 4.9
CC
1
Cov
62%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.6
↑ Summary FeedAggregator.pm »
1 package POE::Component::FeedAggregator::Feed;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $POE::Component::FeedAggregator::Feed::AUTHORITY = 'cpan:GETTY';
4 }
5 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $POE::Component::FeedAggregator::Feed::VERSION = '0.902';
7 }
8 # ABSTRACT: A Feed specification for POE::Component::FeedAggregator
9  
10 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 has sender => (
13 isa => 'POE::Session',
14 is => 'ro',
15 required => 1,
16 );
17  
18 1 has url => (
19 isa => 'Str',
20 is => 'ro',
21 required => 1,
22 );
23  
24 has name => (
25 isa => 'Str',
26 is => 'ro',
27 required => 1,
28 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
29 0 my $self = shift;
30 0 my $name = $self->url;
31 0 $name =~ s/\W/_/g;
32 0 return $name;
33 },
34 1 );
35  
36 has ignore_first => (
37 isa => 'Bool',
38 is => 'ro',
39 required => 1,
40 0 ▶ default => sub { 1 },
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 1 );
42  
43 has delay => (
44 isa => 'Int',
45 is => 'ro',
46 required => 1,
47 0 ▶ default => sub { 1200 },
Subroutine __ANON__: not called CC=1 SCAR=6.9
48 1 );
49  
50 has entry_event => (
51 isa => 'Str',
52 is => 'ro',
53 required => 1,
54 0 ▶ default => sub { 'new_feed_entry' },
Subroutine __ANON__: not called CC=1 SCAR=6.9
55 1 );
56  
57 has max_headlines => (
58 isa => 'Int',
59 is => 'ro',
60 required => 1,
61 0 ▶ default => sub { 100 },
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 1 );
63  
64 1 1;
65 __END__
↑ Summary FeedAggregator.pm »