IMDB/Trivium.pm

filter: Statementstmt 57.1% 12 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 51.7% 15 / 29 CC 3 SCAR 18.7
CC
3
Cov
48%
_new
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« IMDB.pm ↑ Summary IMDB/Base.pm »
1 # $Id: Trivium.pm 7370 2012-04-09 01:17:33Z chris $
2  
3 =head1 NAME
4  
5 WebService::IMDB::Trivium
6  
7 =head1 DESCRIPTION
8  
9 WebService::IMDB::Trivium isa L<WebService::IMDB::DateText>.
10  
11 =cut
12  
13 package WebService::IMDB::Trivium;
14  
15 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 2 our $VERSION = '0.05';
19  
20 2 ▶use base qw(WebService::IMDB::DateText);
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 2 __PACKAGE__->mk_accessors(qw(
23 spoiler
24 ));
25  
26 =head1 METHODS
27  
28 =head2 spoiler
29  
30 =cut
31  
32 0 ▶sub _new {
Subroutine _new: not called CC=3 SCAR=24.8
33 0 my $class = shift;
34 0 my $ws = shift;
35 0 ▶ my $data = shift or die;
Branch: 1 branch
BranchTrueFalseTotal
my $data = shift() or die 0 0 0
36 0 my $spoiler = shift;
37  
38 0 my $self = WebService::IMDB::DateText->_new($ws, $data);
39  
40 0 bless $self, $class;
41  
42 0 ▶ if (defined $spoiler) { $self->spoiler($spoiler); }
Branch: 1 branch
BranchTrueFalseTotal
if (defined $spoiler) 0 0 0
43  
44 0 return $self;
45  
46 }
47  
48 2 1;
« IMDB.pm ↑ Summary IMDB/Base.pm »