File Coverage

blib/lib/re/engine/Lua.pm
Criterion Covered Total %
statement 18 18 100.0
branch 1 2 50.0
condition n/a
subroutine 7 7 100.0
pod n/a
total 26 27 96.3


line stmt bran cond sub pod time code
1             package re::engine::Lua;
2 14     14   837433 use strict;
  14         138  
  14         425  
3 14     14   63 use warnings;
  14         22  
  14         318  
4 14     14   267 use 5.010;
  14         39  
5 14     14   62 use XSLoader;
  14         20  
  14         869  
6              
7             BEGIN {
8             # All engines should subclass the core Regexp package
9 14     14   249 our @ISA = qw( Regexp );
10              
11 14         46 our $VERSION = '0.19';
12 14         6660 XSLoader::load __PACKAGE__, $VERSION;
13             }
14              
15             sub import {
16 14     14   144 $^H{regcomp} = ENGINE;
17 14         11970 return;
18             }
19              
20             sub unimport {
21             delete $^H{regcomp}
22 3 50   3   994 if $^H{regcomp} == ENGINE;
23 3         2466 return;
24             }
25              
26             1;
27              
28             __END__