PLS/Parser/Element/Package.pm

filter: Statementstmt 71.4% 10 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 71.4% 15 / 21 CC 1 SCAR 3.4
CC
1
Cov
71%
name
2.0
length
2.0
BEGIN
1.0
CRAP 1.4
« PLS/Server/Request.pm ↑ Summary PLS/Parser/Element/VariableStatement.pm »
1 package PLS::Parser::Element::Package;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use parent 'PLS::Parser::Element';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 PLS::Parser::Element::Package
11  
12 =head2 DESCRIPTION
13  
14 Subclass of L<PLS::Parser::Element> representing a package declaration.
15  
16 =cut
17  
18 sub name
19 {
20 0 ▶ my ($self) = @_;
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
21  
22 0 return $self->element->namespace;
23 }
24  
25 sub length
26 {
27 0 ▶ my ($self) = @_;
Subroutine length: not called CC=1 SCAR=6.9
Pod documented
28  
29 0 return $self->SUPER::length() + length('package ') + length(';');
30 }
31  
32 1 1;
« PLS/Server/Request.pm ↑ Summary PLS/Parser/Element/VariableStatement.pm »