NicoVideo/Response/Video.pm

filter: Statementstmt 73.9% 17 / 23 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 59.4% 22 / 37 CC 3 SCAR 16.3
CC
3
Cov
61%
parsed_content
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.1
« NicoVideo/Content/MylistRSS.pm ↑ Summary NicoVideo/Content.pm »
1 package Net::NicoVideo::Response::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::Response/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Net::NicoVideo::Content::Video;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub parsed_content { # implement
Subroutine parsed_content: not called CC=3 SCAR=24.8
Pod undocumented
12 0 my $self = shift;
13  
14 0 my $parsed_content = Net::NicoVideo::Content::Video->new($self->_component)->parse;
15 0 ▶ if( $self->header("X-Died") or $self->header("Client-Aborted") ){
Branch: 1 branch
BranchTrueFalseTotal
if ($self->header('X-Died') or $self->header('Client-Aborted')) { } 0 0 0
Condition0%0/3
$self->header("X-Died") or $self->header("Client-Aborted")
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->header("X-Died") or $self->header("Client-Aborted")
$self->header("X-Died") $self->header("Client-Aborted")
Truth table0%0/3
A or B
A= $self->header("X-Died")B= $self->header("Client-Aborted")
ABresult
1X1
011
000
16 0 $parsed_content->set_status_error;
17 }else{
18 0 $parsed_content->set_status_success;
19 }
20 0 return $parsed_content;
21 }
22  
23  
24 1 1;
25 __END__
« NicoVideo/Content/MylistRSS.pm ↑ Summary NicoVideo/Content.pm »