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.013';
4 1     1   15023 { use 5.008; }
  1         5  
5 1     1   5 use strict;
  1         1  
  1         15  
6 1     1   3 use warnings;
  1         1  
  1         42  
7              
8 1     1   419 use Lexical::SealRequireHints 0.005;
  1         552  
  1         4  
9 1     1   390 use B::Hooks::OP::Check 0.19;
  1         1083  
  1         24  
10 1     1   5 use XSLoader;
  1         1  
  1         80  
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   4308 sub unimport { $^H |= 0x20000; $^H{__PACKAGE__.'/disabled'} = 1 }
  13         410  
23              
24              
25 5     5   148 sub import { delete $^H{__PACKAGE__.'/disabled'} }
26              
27              
28             1;
29              
30             __END__