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   151 use 5.006;
  9         22  
4              
5 9     9   33 use strict;
  9         14  
  9         206  
6 9     9   28 use warnings;
  9         9  
  9         325  
7              
8 9     9   34 use base qw{ PPIx::Regexp::Token };
  9         18  
  9         687  
9              
10 9     9   56 use Carp;
  9         10  
  9         521  
11 9     9   33 use PPIx::Regexp::Constant qw{ MINIMUM_PERL @CARP_NOT };
  9         15  
  9         2474  
12              
13             our $VERSION = '0.092';
14              
15             {
16             my %when_removed = (
17             '\\N{}' => '5.027001',
18             );
19              
20             sub __new {
21 153     153   342 my ( $class, $content, %arg ) = @_;
22              
23             defined $arg{perl_version_introduced}
24 153 100       332 or $arg{perl_version_introduced} = MINIMUM_PERL;
25              
26             exists $arg{perl_version_removed}
27 153 50       361 or $arg{perl_version_removed} = $when_removed{$content};
28              
29 153         465 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 5 return 'Not significant';
38             }
39              
40             sub significant {
41 355     355 1 642 return;
42             }
43              
44             1;
45              
46             __END__