File Coverage

blib/lib/PPIx/Regexp/Token/NoOp.pm
Criterion Covered Total %
statement 23 24 95.8
branch 3 4 75.0
condition n/a
subroutine 9 10 90.0
pod 3 3 100.0
total 38 41 92.6


line stmt bran cond sub pod time code
1             package PPIx::Regexp::Token::NoOp;
2              
3 9     9   198 use 5.006;
  9         32  
4              
5 9     9   46 use strict;
  9         16  
  9         186  
6 9     9   44 use warnings;
  9         24  
  9         260  
7              
8 9     9   54 use base qw{ PPIx::Regexp::Token };
  9         37  
  9         746  
9              
10 9     9   67 use Carp;
  9         23  
  9         568  
11 9     9   61 use PPIx::Regexp::Constant qw{ MINIMUM_PERL @CARP_NOT };
  9         19  
  9         2242  
12              
13             our $VERSION = '0.087_01';
14              
15             {
16             my %when_removed = (
17             '\\N{}' => '5.027001',
18             );
19              
20             sub __new {
21 151     151   523 my ( $class, $content, %arg ) = @_;
22              
23             defined $arg{perl_version_introduced}
24 151 100       454 or $arg{perl_version_introduced} = MINIMUM_PERL;
25              
26             exists $arg{perl_version_removed}
27 151 50       503 or $arg{perl_version_removed} = $when_removed{$content};
28              
29 151         655 return $class->SUPER::__new( $content, %arg );
30             }
31             }
32              
33             # Return true if the token can be quantified, and false otherwise
34 0     0 1 0 sub can_be_quantified { return };
35              
36             sub explain {
37 1     1 1 6 return 'Not significant';
38             }
39              
40             sub significant {
41 350     350 1 892 return;
42             }
43              
44             1;
45              
46             __END__