File Coverage

blib/lib/Switch/Declare.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Switch::Declare;
2              
3 23     23   2016649 use 5.014;
  23         87  
4 23     23   138 use strict;
  23         135  
  23         568  
5 23     23   98 use warnings;
  23         42  
  23         3131  
6              
7             our $VERSION = '0.06';
8              
9             require XSLoader;
10             XSLoader::load('Switch::Declare', $VERSION);
11              
12 26     26   189349 sub import { $^H{'Switch::Declare'} = 1 }
13 1     1   31 sub unimport { delete $^H{'Switch::Declare'} }
14              
15             1;
16              
17             __END__