File Coverage

blib/lib/Enbld/Target/Attribute/ArchiveName.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::ArchiveName;
2              
3 7     7   12485 use strict;
  7         14  
  7         177  
4 7     7   21 use warnings;
  7         8  
  7         134  
5              
6 7     7   22 use Carp;
  7         7  
  7         337  
7              
8 7     7   1519 use parent qw/Enbld::Target::AttributeExtension::Word/;
  7         815  
  7         30  
9              
10             sub initialize {
11 58     58 0 82 my ( $self, $param ) = @_;
12              
13 58 100       164 if ( $param ) {
14 56         151 $self->SUPER::initialize( $param );
15 56         78 return $self;
16             }
17              
18 2         310 require Enbld::Exception;
19 2         7 croak( Enbld::Exception->new( "Attribute 'ArchiveName' isn't defined" ) );
20             }
21              
22             1;