IMDB/Goof.pm

filter: Statementstmt 61.5% 16 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 60.6% 20 / 33 CC 2 SCAR 9.8
CC
2
Cov
57%
_new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« IMDB/Death.pm ↑ Summary IMDB/Image.pm »
1 # $Id: Goof.pm 7370 2012-04-09 01:17:33Z chris $
2  
3 =head1 NAME
4  
5 WebService::IMDB::Goof
6  
7 =cut
8  
9 package WebService::IMDB::Goof;
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 __PACKAGE__->mk_accessors(qw(
22 spoiler
23  
24 text
25 type
26 ));
27  
28  
29 =head1 METHODS
30  
31 =head2 spoiler
32  
33 =head2 text
34  
35 =head2 type
36  
37 =cut
38  
39 0 ▶sub _new {
Subroutine _new: not called CC=2 SCAR=17.9
40 0 my $class = shift;
41 0 my $ws = shift;
42 0 ▶ my $data = shift or die;
Branch: 1 branch
BranchTrueFalseTotal
my $data = shift() or die 0 0 0
43 0 my $spoiler = shift;
44  
45 0 my $self = {};
46  
47 0 bless $self, $class;
48  
49 0 $self->text($data->{'text'});
50 0 $self->type($data->{'type'});
51  
52 0 $self->spoiler($spoiler);
53  
54 0 return $self;
55 }
56  
57 2 1;
« IMDB/Death.pm ↑ Summary IMDB/Image.pm »