NicoVideo/Response.pm

filter: Statementstmt 63.6% 14 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 0.0% 0 / 4 totaltotal 52.9% 18 / 34 CC 1 SCAR 4.1
CC
1
Cov
64%
is_authflagged
2.0
parsed_content
2.0
is_content_success
2.0
CRAP 1.5
« NicoVideo/Decorator.pm ↑ Summary NicoVideo/Response/Flv.pm »
1 package Net::NicoVideo::Response;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 $VERSION = '0.28';
7  
8 # NOTE: Never inherit with classes that have "get()" or "set()",
9 # because these interfere with _component which is decorated with Net::NicoVideo::Decorator
10 3 ▶use base qw(Net::NicoVideo::Decorator);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 0 ▶sub is_authflagged {
Subroutine is_authflagged: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my $self = shift;
14 0 $self->headers->header('x-niconico-authflag');
15 }
16  
17 # a client has to check is_success and is_content_success
18 # before calling this
19 0 ▶sub parsed_content { # abstract
Subroutine parsed_content: not called CC=1 SCAR=6.9
Pod undocumented
20 0 my $self = shift;
21 0 Net::NicoVideo::Content->new($self->_component)->parse;
22 }
23  
24 # DEPRECATED - use Net::NicoVideo::Content#is_success instead
25 0 ▶sub is_content_success { # abstract
Subroutine is_content_success: not called CC=1 SCAR=6.9
Pod undocumented
26 0 my $self = shift;
27 0 $self->parsed_content->is_success;
28 }
29  
30 # DEPRECATED - use Net::NicoVideo::Content#is_error instead
31 0 ▶sub is_content_error { # abstract
Subroutine is_content_error: not called CC=1 SCAR=6.9
Pod undocumented
32 0 my $self = shift;
33 0 $self->parsed_content->is_error;
34 }
35  
36  
37 3 1;
38 __END__
« NicoVideo/Decorator.pm ↑ Summary NicoVideo/Response/Flv.pm »