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   156 use 5.006;
  9         28  
4              
5 9     9   38 use strict;
  9         12  
  9         194  
6 9     9   29 use warnings;
  9         16  
  9         408  
7              
8 9     9   35 use base qw{ PPIx::Regexp::Token };
  9         12  
  9         725  
9              
10 9     9   51 use Carp;
  9         15  
  9         512  
11 9     9   38 use PPIx::Regexp::Constant qw{ MINIMUM_PERL @CARP_NOT };
  9         17  
  9         2022  
12              
13             our $VERSION = '0.091_01';
14              
15             {
16             my %when_removed = (
17             '\\N{}' => '5.027001',
18             );
19              
20             sub __new {
21 153     153   399 my ( $class, $content, %arg ) = @_;
22              
23             defined $arg{perl_version_introduced}
24 153 100       321 or $arg{perl_version_introduced} = MINIMUM_PERL;
25              
26             exists $arg{perl_version_removed}
27 153 50       439 or $arg{perl_version_removed} = $when_removed{$content};
28              
29 153         529 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 3 return 'Not significant';
38             }
39              
40             sub significant {
41 355     355 1 738 return;
42             }
43              
44             1;
45              
46             __END__