Perl/Analysis/Static/Element/Sub.pm

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