IMDB/Season.pm

filter: Statementstmt 63.3% 19 / 30 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 63.1% 24 / 38 CC 2 SCAR 8.9
CC
2
Cov
59%
_new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« IMDB/ParentalGuideItem.pm ↑ Summary IMDB/Quote.pm »
1 # $Id: Season.pm 7370 2012-04-09 01:17:33Z chris $
2  
3 =head1 NAME
4  
5 WebService::IMDB::Season
6  
7 =cut
8  
9 package WebService::IMDB::Season;
10  
11 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 our $VERSION = '0.05';
15  
16 2 ▶use base qw(Class::Accessor);
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 our @CARP_NOT = qw(WebService::IMDB WebService::IMDB::Title);
20  
21 2 ▶use WebService::IMDB::Credit;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 2 __PACKAGE__->mk_accessors(qw(
24 label
25 list
26 token
27 ));
28  
29  
30 =head1 METHODS
31  
32 =head2 label
33  
34 =head2 list
35  
36 =head2 token
37  
38 =cut
39  
40 0 ▶sub _new {
Subroutine _new: not called CC=2 SCAR=17.9
41 0 my $class = shift;
42 0 my $ws = shift;
43 0 ▶ my $data = shift or die;
Branch: 1 branch
BranchTrueFalseTotal
my $data = shift() or die 0 0 0
44  
45 0 my $self = {};
46  
47 0 bless $self, $class;
48  
49 0 $self->label($data->{'label'});
50 0 $self->list([ map { WebService::IMDB::Title::Stub->_new($ws, $_) } @{$data->{'list'}}]);
51 0 $self->token($data->{'token'});
52  
53 0 return $self;
54 }
55  
56 2 1;
« IMDB/ParentalGuideItem.pm ↑ Summary IMDB/Quote.pm »