blib/lib/PPIx/Regexp/Token/NoOp.pm

filter: Statementstmt 96.4% 27 / 28 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 100% 3 / 3 totaltotal 93.3% 42 / 45 CC 3 SCAR 4.2
CC
3
Cov
94%
__new
3.0
can_be_quantified
1.1
BEGIN
1.0
CRAP 1.5
« blib/lib/PPIx/Regexp/Structure/Regexp.pm ↑ Summary blib/lib/PPIx/Regexp/Token/Backtrack.pm »
1 package PPIx::Regexp::Token::NoOp;
2  
3 9 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 9 ▶use base qw{ PPIx::Regexp::Token };
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 9 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 9 ▶use PPIx::Regexp::Constant qw{ MINIMUM_PERL @CARP_NOT };
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 9 our $VERSION = '0.091_01';
14  
15 {
16 9 my %when_removed = (
17 '\\N{}' => '5.027001',
18 );
19  
20 sub __new {
21 153 ▶ my ( $class, $content, %arg ) = @_;
Subroutine __new: called CC=3 SCAR=11.0
22  
23 defined $arg{perl_version_introduced}
24 153 ▶ or $arg{perl_version_introduced} = MINIMUM_PERL;
Branch: 1 branch
BranchTrueFalseTotal
defined $arg{"perl_version_introduced"} or $arg{"perl_version_introduced"} = "5.000" 2 151 153
25  
26 exists $arg{perl_version_removed}
27 153 ▶ or $arg{perl_version_removed} = $when_removed{$content};
Branch: 1 branch
BranchTrueFalseTotal
exists $arg{"perl_version_removed"} or $arg{"perl_version_removed"} = $when_removed{$content} 153 0 153
28  
29 153 return $class->SUPER::__new( $content, %arg );
30 }
31 }
32  
33 # Return true if the token can be quantified, and false otherwise
34 0 ▶sub can_be_quantified { return };
Subroutine can_be_quantified: not called CC=1 SCAR=1.2
Pod documented
35  
36 sub explain {
37 1 ▶ return 'Not significant';
Subroutine explain: called CC=1 SCAR=0.0
Pod documented
38 }
39  
40 sub significant {
41 355 ▶ return;
Subroutine significant: called CC=1 SCAR=0.0
Pod documented
42 }
43  
44 9 1;
45  
46 __END__
« blib/lib/PPIx/Regexp/Structure/Regexp.pm ↑ Summary blib/lib/PPIx/Regexp/Token/Backtrack.pm »