Perl/Analysis/Static/Question/Lexical/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.pm ↑ Summary Perl/Analysis/Static/Question/Sub/Name.pm »
1 package Perl::Analysis::Static::Question::Lexical::Name;
2 {
3 1 $Perl::Analysis::Static::Question::Lexical::Name::VERSION = '0.004'; # TRIAL
4 }
5 # ABSTRACT: Does the name of the lexical variable equal this string?
6  
7 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 extends 'Perl::Analysis::Static::Question';
10  
11 1 ▶sub set_arguments {
Subroutine set_arguments: called CC=1 SCAR=0.0
Pod undocumented
12 1 my ( $self, $arguments ) = @_;
13 1 $self->class('Perl::Analysis::Static::Element::Declaration::Variable');
14 1 $self->filter( ['Name'] );
15 1 $self->arguments( [ split( /:/, $arguments ) ] );
16 }
17  
18 1 1;
19  
20 __END__
« Perl/Analysis/Static/Question.pm ↑ Summary Perl/Analysis/Static/Question/Sub/Name.pm »