File Coverage

blib/lib/Enbld/Target/Attribute/VersionForm.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::VersionForm;
2              
3 7     7   19957 use strict;
  7         17  
  7         226  
4 7     7   33 use warnings;
  7         14  
  7         161  
5              
6 7     7   31 use Carp;
  7         12  
  7         439  
7              
8 7     7   882 use parent qw/Enbld::Target::AttributeExtension::RegEx/;
  7         332  
  7         39  
9              
10             sub initialize {
11 67     67 0 160 my ( $self, $param ) = @_;
12              
13 67 100       179 if ( $param ) {
14 65         382 $self->SUPER::initialize( $param );
15 65         142 return $self;
16             }
17              
18 2         8 require Enbld::Exception;
19 2         7 croak( Enbld::Exception->new( "Attribute 'VersionForm' isn't defined" ));
20             }
21              
22             1;