Perl/Analysis/Static/Question/Sub/Name.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 1 totaltotal 92.8% 13 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
set_arguments
1.0
CRAP 1.0
« Perl/Analysis/Static/Question/Lexical/Name.pm ↑ Summary Perl/Analysis/Static/Analysis/Block.pm »
1 package Perl::Analysis::Static::Question::Sub::Name;
2 {
3 2 $Perl::Analysis::Static::Question::Sub::Name::VERSION = '0.004'; # TRIAL
4 }
5 # ABSTRACT: Has the subroutine this name?
6  
7 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 extends 'Perl::Analysis::Static::Question';
10  
11 2 ▶sub set_arguments {
Subroutine set_arguments: called CC=1 SCAR=0.0
Pod undocumented
12 2 my ($self, $arguments) = @_;
13 2 $self->class('Perl::Analysis::Static::Element::Sub');
14 2 $self->filter( ['Name'] );
15 2 $self->arguments( [split(/:/, $arguments)] );
16 }
17  
18 2 1;
19  
20 __END__
« Perl/Analysis/Static/Question/Lexical/Name.pm ↑ Summary Perl/Analysis/Static/Analysis/Block.pm »