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.40';
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 26     26   536 use 5.006;
  26         110  
8 26     26   163 use strict;
  26         62  
  26         605  
9 26     26   172 use warnings;
  26         62  
  26         3728  
10              
11             sub new {
12 42     42 0 99 my $class = shift;
13 42         208 return bless { @_ }, $class;
14             }
15              
16             sub version {
17 40     40 0 144 $_[0]->{version};
18             }
19              
20             sub rule {
21 3     3 0 2195 $_[0]->{rule};
22             }
23              
24             sub element {
25 4     4 0 672 $_[0]->{element};
26             }
27              
28             sub explanation {
29 0     0 0   $_[0]->{explanation};
30             }
31              
32             1;