File Coverage

blib/lib/multidimensional.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 28 28 100.0


line stmt bran cond sub pod time code
1             package multidimensional;
2             # ABSTRACT: disables multidimensional array emulation
3             $multidimensional::VERSION = '0.014';
4 1     1   98007 { use 5.008001; }
  1         12  
5 1     1   6 use strict;
  1         1  
  1         32  
6 1     1   6 use warnings;
  1         2  
  1         58  
7              
8 1     1   1020 use if "$]" < 5.012, 'Lexical::SealRequireHints';
  1         21  
  1         18  
9 1     1   565 use B::Hooks::OP::Check 0.19;
  1         1492  
  1         30  
10 1     1   7 use XSLoader;
  1         2  
  1         151  
11              
12             XSLoader::load(
13             __PACKAGE__,
14             # we need to be careful not to touch $VERSION at compile time, otherwise
15             # DynaLoader will assume it's set and check against it, which will cause
16             # fail when being run in the checkout without dzil having set the actual
17             # $VERSION
18             exists $multidimensional::{VERSION} ? ${ $multidimensional::{VERSION} } : (),
19             );
20              
21              
22 13     13   9527 sub unimport { $^H |= 0x20000; $^H{__PACKAGE__.'/disabled'} = 1 }
  13         547  
23              
24              
25 5     5   216 sub import { delete $^H{__PACKAGE__.'/disabled'} }
26              
27              
28             1;
29              
30             __END__