File Coverage

blib/lib/Taint/Util.pm
Criterion Covered Total %
statement 9 10 90.0
branch 3 4 75.0
condition n/a
subroutine 2 2 100.0
pod n/a
total 14 16 87.5


line stmt bran cond sub pod time code
1             package Taint::Util;
2             our $VERSION = '0.08';
3 5     5   92406 use XSLoader ();
  5         12  
  5         1240  
4              
5             @EXPORT_OK{qw(tainted taint untaint)} = ();
6              
7             sub import
8             {
9 7     7   3293 shift;
10 7         15 my $caller = caller;
11 7 100       35 for (@_ ? @_ : keys %EXPORT_OK)
12             {
13 18 50       50 die qq["$_" is not exported by the @{[__PACKAGE__]} module"]
  0         0  
14             unless exists $EXPORT_OK{$_};
15 18         34 *{"$caller\::$_"} = \&$_;
  18         5670  
16             }
17             }
18              
19             XSLoader::load __PACKAGE__, $VERSION;
20              
21             1;
22              
23             __END__