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   16148 use strict;
  7         12  
  7         237  
4 7     7   31 use warnings;
  7         11  
  7         173  
5              
6 7     7   31 use Carp;
  7         10  
  7         482  
7              
8 7     7   1838 use parent qw/Enbld::Target::AttributeExtension::Word/;
  7         1108  
  7         36  
9              
10             sub initialize {
11 58     58 0 127 my ( $self, $param ) = @_;
12              
13 58 100       171 if ( $param ) {
14 56         238 $self->SUPER::initialize( $param );
15 56         110 return $self;
16             }
17              
18 2         8 require Enbld::Exception;
19 2         7 croak( Enbld::Exception->new( "Attribute 'ArchiveName' isn't defined" ) );
20             }
21              
22             1;