File Coverage

blib/lib/PLS/Parser/Element/Constant.pm
Criterion Covered Total %
statement 9 13 69.2
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 18 72.2


line stmt bran cond sub pod time code
1             package PLS::Parser::Element::Constant;
2              
3 11     11   94 use strict;
  11         22  
  11         295  
4 11     11   54 use warnings;
  11         22  
  11         262  
5              
6 11     11   49 use parent 'PLS::Parser::Element';
  11         20  
  11         73  
7              
8             =head1 NAME
9              
10             PLS::Parser::Element::Constant
11              
12             =head1 DESCRIPTION
13              
14             Subclass of L<PPI::Parser::Element> representing a constant
15             declared with C<use constant>.
16              
17             =cut
18              
19             sub location_info
20             {
21 0     0 1   my ($self) = @_;
22              
23 0           my $info = $self->SUPER::location_info;
24 0           $info->{constant} = 1;
25 0           return $info;
26             } ## end sub location_info
27              
28             1;