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 16     16   1355971 use 5.014;
  16         51  
4 16     16   66 use strict;
  16         97  
  16         315  
5 16     16   57 use warnings;
  16         38  
  16         2033  
6              
7             our $VERSION = '0.02';
8              
9             require XSLoader;
10             XSLoader::load('Switch::Declare', $VERSION);
11              
12 18     18   25023 sub import { $^H{'Switch::Declare'} = 1 }
13 1     1   33 sub unimport { delete $^H{'Switch::Declare'} }
14              
15             1;
16              
17             __END__