IMDB/Death.pm

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