File Coverage

lib/Perlmazing.pm
Criterion Covered Total %
statement 34 35 97.1
branch 10 12 83.3
condition 3 6 50.0
subroutine 6 6 100.0
pod n/a
total 53 59 89.8


line stmt bran cond sub pod time code
1             package Perlmazing;
2 32     32   2260820 use Perlmazing::Engine;
  32         86  
  32         197  
3 32     32   172270 use Perlmazing::Engine::Exporter;
  32         87  
  32         212  
4 32     32   205 use Perlmazing::Feature;
  32         85  
  32         237  
5 32     32   15883 use Win32::Symlinks;
  32         39940  
  32         3749  
6             our $VERSION = '2.0006';
7             our @EXPORT = qw(pl dumped define time localtime gmtime mkdir rmdir sleep stat);
8             our @found_symbols = Perlmazing::Engine->found_symbols;
9             our %EXPORT_TAGS = (
10             all => \@found_symbols,
11             );
12              
13             Perlmazing::Engine->precompile;
14              
15             Perlmazing::Engine->preload(
16             qw(
17            
18             )
19             );
20              
21 32     32   243 no warnings 'redefine';
  32         67  
  32         15065  
22             sub import {
23 1386     1386   2702 my $self = shift;
24 1386         4139 my @call = caller;
25 1386         5964 Perlmazing::Feature->import;
26 1386         27129 warnings->import(FATAL => qw(closed unopened numeric recursion syntax uninitialized));
27 1386 100       3717 if (@_) {
28 315         513 my (@YES, @NO);
29 315         495 for my $i (@_) {
30 677 100       1309 if ($i =~ /^!(.*?)$/) {
31 1         4 push @NO, $1;
32             } else {
33 676         1099 push @YES, $i;
34             }
35             }
36 315         525 for my $i (@YES, @NO) {
37 677 50 33     1256 croak "Symbol '$i' is not exported by the Perlmazing module" unless (grep {$i eq ":$_"} keys %EXPORT_TAGS) or (grep {$i eq $_} @found_symbols);
  677         2557  
  73116         84847  
38             }
39 315 50 66     1316 if (@YES and @NO) {
    100          
40 0         0 @EXPORT = @YES;
41             } elsif (@YES) {
42 314         458 for my $i (@YES) {
43 676 100       896 push (@EXPORT, $i) unless grep {$i eq $_} @EXPORT;
  11359         14145  
44             }
45             }
46             }
47 1386         4041 $self->SUPER::import;
48             }
49              
50             1;
51              
52             __END__