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 21     21   1807865 use 5.014;
  21         65  
4 21     21   84 use strict;
  21         107  
  21         470  
5 21     21   99 use warnings;
  21         82  
  21         2819  
6              
7             our $VERSION = '0.03';
8              
9             require XSLoader;
10             XSLoader::load('Switch::Declare', $VERSION);
11              
12 23     23   36514 sub import { $^H{'Switch::Declare'} = 1 }
13 1     1   31 sub unimport { delete $^H{'Switch::Declare'} }
14              
15             1;
16              
17             __END__