NicoVideo/Content/Video.pm

filter: Statementstmt 67.8% 19 / 28 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 58.5% 24 / 41 CC 3 SCAR 15.6
CC
3
Cov
59%
parse
12.0
members
2.0
BEGIN
1.0
CRAP 4.8
« NicoVideo/Content.pm ↑ Summary NicoVideo/Content/Thread.pm »
1 package Net::NicoVideo::Content::Video;
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 vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $VERSION = '0.28';
7  
8 1 ▶use base qw(Net::NicoVideo::Content Class::Accessor::Fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use vars qw(@Members);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 @Members = qw(
12 content_ref
13 );
14  
15 1 __PACKAGE__->mk_accessors(@Members);
16  
17 0 ▶sub members { # implement
Subroutine members: not called CC=1 SCAR=6.9
Pod undocumented
18 0 my @copy = @Members;
19 0 @copy;
20 }
21  
22 0 ▶sub parse { # implement
Subroutine parse: not called CC=3 SCAR=24.8
Pod undocumented
23 0 my $self = shift;
24 0 ▶ $self->load($_[0]) if( defined $_[0] );
Branch: 1 branch
BranchTrueFalseTotal
if defined $_[0] 0 0 0
25  
26 # TODO - temporary return
27 0 $self->content_ref( $self->_decoded_content );
28
29 # status TODO - the judgement is detected by response header
30 0 ▶ if( $self ){
Branch: 1 branch
BranchTrueFalseTotal
if ($self) { } 0 0 0
31 0 $self->set_status_success;
32 }else{
33 0 $self->set_status_error;
34 }
35  
36 0 return $self;
37 }
38  
39  
40 1 1;
41 __END__
« NicoVideo/Content.pm ↑ Summary NicoVideo/Content/Thread.pm »