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   203321 use strict;
  14         21  
  14         381  
3 14     14   50 use warnings;
  14         16  
  14         329  
4 14     14   256 use 5.010;
  14         34  
5 14     14   57 use XSLoader;
  14         15  
  14         753  
6              
7             BEGIN {
8             # All engines should subclass the core Regexp package
9 14     14   158 our @ISA = qw( Regexp );
10              
11 14         35 our $VERSION = '0.17';
12 14         6993 XSLoader::load __PACKAGE__, $VERSION;
13             }
14              
15             sub import {
16 14     14   128 $^H{regcomp} = ENGINE;
17 14         10916 return;
18             }
19              
20             sub unimport {
21             delete $^H{regcomp}
22 3 50   3   2374 if $^H{regcomp} == ENGINE;
23 3         3098 return;
24             }
25              
26             1;
27              
28             __END__