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.012';
4 1     1   15321 { use 5.008; }
  1         2  
5 1     1   3 use strict;
  1         2  
  1         15  
6 1     1   2 use warnings;
  1         1  
  1         26  
7              
8 1     1   520 use Lexical::SealRequireHints 0.005;
  1         544  
  1         3  
9 1     1   426 use B::Hooks::OP::Check 0.19;
  1         1213  
  1         38  
10 1     1   8 use XSLoader;
  1         2  
  1         89  
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   5838 sub unimport { $^H |= 0x20000; $^H{__PACKAGE__.'/disabled'} = 1 }
  13         438  
23              
24              
25 5     5   160 sub import { delete $^H{__PACKAGE__.'/disabled'} }
26              
27              
28             1;
29              
30             __END__