IMDB/KnownFor.pm

filter: Statementstmt 67.8% 19 / 28 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 63.1% 24 / 38 CC 3 SCAR 16.3
CC
3
Cov
59%
_new
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.1
« IMDB/DateText.pm ↑ Summary IMDB/Death.pm »
1 # $Id: KnownFor.pm 7370 2012-04-09 01:17:33Z chris $
2  
3 =head1 NAME
4  
5 WebService::IMDB::KnownFor
6  
7 =cut
8  
9 package WebService::IMDB::KnownFor;
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::Name);
20  
21 2 ▶use WebService::IMDB::Title::Stub;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 2 __PACKAGE__->mk_accessors(qw(
24 title
25 attr
26 ));
27  
28  
29 =head1 METHODS
30  
31 =head2 title
32  
33 =head2 attr
34  
35 =cut
36  
37 0 ▶sub _new {
Subroutine _new: not called CC=3 SCAR=24.8
38 0 my $class = shift;
39 0 my $ws = shift;
40 0 ▶ my $data = shift or die;
Branch: 1 branch
BranchTrueFalseTotal
my $data = shift() or die 0 0 0
41  
42 0 my $self = {};
43  
44 0 bless $self, $class;
45  
46 0 $self->title(WebService::IMDB::Title::Stub->_new($ws, $data->{'title'}));
47 0 ▶ if (exists $data->{'attr'}) { $self->attr($data->{'attr'}); }
Branch: 1 branch
BranchTrueFalseTotal
if (exists $data->{"attr"}) 0 0 0
48  
49 0 return $self;
50 }
51  
52 2 1;
« IMDB/DateText.pm ↑ Summary IMDB/Death.pm »