Perl/Analysis/Static/Analysis/String.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
_convert
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Perl::Analysis::Static::Analysis::String;
2 {
3 $Perl::Analysis::Static::Analysis::String::VERSION = '0.004'; # TRIAL
4 }
5  
6 # ABSTRACT: find all strings
7  
8 use Moose;
9 use Carp;
10 use English qw( -no_match_vars ); # Avoids regex performance penalty
11  
12 use Perl::Analysis::Static::Element::String;
13  
14 extends 'Perl::Analysis::Static::Analysis';
15  
16 has '_ppi_class' =>
17 ( is => 'rw', isa => 'Str', default => 'PPI::Token::Quote' );
18  
19 sub _convert {
20 my ( $self, $node ) = @_;
21 return Perl::Analysis::Static::Element::String->new(
22 string => $node->string(),
23 from => $node->location->[0],
24 to => $node->location->[0],
25 ppi_node => $node
26 );
27 }
28  
29 1;
30  
31 __END__