Perl/Analysis/Static/Element/Declaration/Variable.pm

filter: Statementstmt 80.0% 8 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 100% 1 / 1 totaltotal 76.9% 10 / 13 CC 1 SCAR 4.1
CC
1
Cov
80%
stringify
2.0
BEGIN
1.0
CRAP 1.5
« Perl/Analysis/Static/Element/Declaration/Package.pm ↑ Summary Perl/Analysis/Static/Element/Use.pm »
1 package Perl::Analysis::Static::Element::Declaration::Variable;
2 {
3 4 $Perl::Analysis::Static::Element::Declaration::Variable::VERSION = '0.004'; # TRIAL
4 }
5 # ABSTRACT: declaration of a variable
6  
7 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 extends 'Perl::Analysis::Static::Element::Declaration';
10  
11 4 has 'name' => ( is => 'rw', isa => 'Str' );
12  
13  
14 0 ▶sub stringify {
Subroutine stringify: not called CC=1 SCAR=6.9
Pod documented
15 0 my ($self)=@_;
16
17 0 return $self->from.': '.$self->name;
18 }
19  
20  
21 4 1;
22  
23 __END__
« Perl/Analysis/Static/Element/Declaration/Package.pm ↑ Summary Perl/Analysis/Static/Element/Use.pm »