File Coverage

blib/lib/Enbld/Target/Attribute/WebSite.pm
Criterion Covered Total %
statement 18 18 100.0
branch 2 2 100.0
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 25 26 96.1


line stmt bran cond sub pod time code
1             package Enbld::Target::Attribute::WebSite;
2              
3 2     2   3216 use strict;
  2         3  
  2         52  
4 2     2   7 use warnings;
  2         2  
  2         41  
5              
6 2     2   6 use Carp;
  2         2  
  2         97  
7              
8 2     2   377 use parent qw/Enbld::Target::AttributeExtension::URL/;
  2         206  
  2         7  
9              
10             sub initialize {
11 54     54 0 102 my ( $self, $param ) = @_;
12              
13 54 100       139 if ( $param ) {
14 52         167 $self->SUPER::initialize( $param );
15 52         94 return $self;
16             }
17              
18 2         305 require Enbld::Exception;
19 2         7 croak( Enbld::Exception->new( "Attribute 'WebSite' isn't defined" ));
20             }
21              
22             1;