NicoVideo/Content/TagRSS.pm

filter: Statementstmt 71.4% 20 / 28 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 2 totaltotal 55.3% 26 / 47 CC 4 SCAR 20.8
CC
4
Cov
57%
parse
20.0
members
2.0
BEGIN
1.0
CRAP 8.0
« NicoVideo/Content/MylistPage.pm ↑ Summary NicoVideo/Content/MylistRSS.pm »
1 package Net::NicoVideo::Content::TagRSS;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $VERSION = '0.28';
8  
9 # NOTE: Never inherit with classes that have "get()" or "set()", like Class::Accessor::Fast,
10 # because these interfere with _component which is decorated with Net::NicoVideo::Decorator, like XML::FeedPP.
11 1 ▶use base qw(Net::NicoVideo::Content Net::NicoVideo::Decorator);
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use XML::FeedPP;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub members { # implement
Subroutine members: not called CC=1 SCAR=6.9
Pod undocumented
15 0 ();
16 }
17  
18 0 ▶sub parse { # implement
Subroutine parse: not called CC=4 SCAR=30.0
Pod undocumented
19 0 my $self = shift;
20 0 ▶ $self->load($_[0]) if( defined $_[0] );
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] 0 0 0
21 0 $self->_component( XML::FeedPP->new($self->_decoded_content) );
22  
23 # status
24 0 ▶ if( ref($self->_component) and $self->_component->isa('XML::FeedPP') ){
Branch: 1 branch
BranchTrueFalseTotal
if (ref $self->_component and $self->_component->isa('XML::FeedPP')) { } 0 0 0
Condition0%0/3
ref $self->_component and $self->_component->isa("XML::FeedPP")
!ll&&!rl&&r
000
MC/DC0%0/2
ref $self->_component and $self->_component->isa("XML::FeedPP")
ref $self->_component $self->_component->isa("XML::FeedPP")
Truth table0%0/3
A and B
A= ref $self->_componentB= $self->_component->isa("XML::FeedPP")
ABresult
0X0
100
111
25 0 $self->set_status_success;
26 }else{
27 0 $self->set_status_error;
28 }
29  
30 0 return $self;
31 }
32  
33 1 1;
34 __END__
« NicoVideo/Content/MylistPage.pm ↑ Summary NicoVideo/Content/MylistRSS.pm »