blib/lib/PLS/Parser/Element/Constant.pm

filter: Statementstmt 71.4% 10 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 73.6% 14 / 19 CC 1 SCAR 2.2
CC
1
Cov
71%
location_info
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/PLS/Server/Request/Exit.pm ↑ Summary blib/lib/PLS/Parser/Element/Variable.pm »
1 package PLS::Parser::Element::Constant;
2  
3 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 15 ▶use parent 'PLS::Parser::Element';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 0 ▶{
Subroutine location_info: not called CC=1 SCAR=6.9
Pod documented
21 0 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 15 1;
« blib/lib/PLS/Server/Request/Exit.pm ↑ Summary blib/lib/PLS/Parser/Element/Variable.pm »