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 16     16   2451931 use strict;
  16         38  
  16         712  
3 16     16   176 use warnings;
  16         30  
  16         1084  
4 16     16   320 use 5.010;
  16         67  
5 16     16   130 use XSLoader;
  16         56  
  16         1546  
6              
7             BEGIN {
8             # All engines should subclass the core Regexp package
9 16     16   410 our @ISA = qw( Regexp );
10              
11 16         50 our $VERSION = '0.22';
12 16         11818 XSLoader::load __PACKAGE__, $VERSION;
13             }
14              
15             sub import {
16 16     16   231 $^H{regcomp} = ENGINE;
17 16         20457 return;
18             }
19              
20             sub unimport {
21             delete $^H{regcomp}
22 3 50   3   1456 if $^H{regcomp} == ENGINE;
23 3         3660 return;
24             }
25              
26             1;
27              
28             __END__