File Coverage

blib/lib/Perl/MinimumVersion/Reason.pm
Criterion Covered Total %
statement 13 14 92.8
branch n/a
condition n/a
subroutine 7 8 87.5
pod 0 5 0.0
total 20 27 74.0


line stmt bran cond sub pod time code
1             package Perl::MinimumVersion::Reason;
2             $Perl::MinimumVersion::Reason::VERSION = '1.44';
3             # Simple abstraction for a syntax limitation.
4             # It contains the limiting version, the rule responsible, and the
5             # PPI element responsible for the limitation (if any).
6              
7 21     21   415 use 5.006;
  21         86  
8 21     21   160 use strict;
  21         73  
  21         983  
9 21     21   230 use warnings;
  21         147  
  21         4917  
10              
11             sub new {
12 47     47 0 117 my $class = shift;
13 47         277 return bless { @_ }, $class;
14             }
15              
16             sub version {
17 48     48 0 172 $_[0]->{version};
18             }
19              
20             sub rule {
21 3     3 0 3073 $_[0]->{rule};
22             }
23              
24             sub element {
25 4     4 0 899 $_[0]->{element};
26             }
27              
28             sub explanation {
29 0     0 0   $_[0]->{explanation};
30             }
31              
32             1;