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.41'; # TRIAL
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 14     14   364 use 5.006;
  14         70  
8 14     14   97 use strict;
  14         60  
  14         351  
9 14     14   86 use warnings;
  14         37  
  14         2160  
10              
11             sub new {
12 24     24 0 63 my $class = shift;
13 24         133 return bless { @_ }, $class;
14             }
15              
16             sub version {
17 25     25 0 102 $_[0]->{version};
18             }
19              
20             sub rule {
21 3     3 0 1750 $_[0]->{rule};
22             }
23              
24             sub element {
25 4     4 0 559 $_[0]->{element};
26             }
27              
28             sub explanation {
29 0     0 0   $_[0]->{explanation};
30             }
31              
32             1;