Web/Page/Content.pm

filter: Statementstmt 100% 17 / 17 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 96.0% 24 / 25 CC 3 SCAR 7.9
CC
3
Cov
95%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Web/Request.pm ↑ Summary Web.pm »
1 package EntityModel::Web::Page::Content;
2 {
3 10 $EntityModel::Web::Page::Content::VERSION = '0.004';
4 }
5 10 ▶use EntityModel::Class {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 10 section => 'string',
7 template => 'string',
8 10 };
9  
10 =head1 NAME
11  
12  
13  
14 =head1 SYNOPSIS
15  
16 =head1 VERSION
17  
18 version 0.004
19  
20 =head1 DESCRIPTION
21  
22 =cut
23  
24 10 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 =head1 METHODS
27  
28 =cut
29  
30 8 ▶sub new {
Subroutine new: called CC=3 SCAR=11.0
Pod documented
31 8 my $class = shift;
32 8 my $self = $class->SUPER::new;
33 8 my %args = @_;
34 8 ▶ if(defined(my $section = delete $args{section})) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $section = delete $args{"section"})) 7 1 8
35 7 $self->{section} = $section;
36 }
37 8 ▶ if(defined(my $tmpl = delete $args{template})) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $tmpl = delete $args{"template"})) 8 0 8
38 8 $self->{template} = $tmpl;
39 }
40 8 return $self;
41 }
42  
43 10 1;
44  
45 __END__
« Web/Request.pm ↑ Summary Web.pm »