File Coverage

blib/lib/Return/Deep.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 1 2 50.0
total 22 23 95.6


line stmt bran cond sub pod time code
1             package Return::Deep;
2              
3 1     1   69217 use 5.008;
  1         4  
4 1     1   6 use strict;
  1         1  
  1         31  
5 1     1   7 use warnings;
  1         4  
  1         235  
6              
7             require Exporter;
8              
9             our @ISA = qw(Exporter);
10              
11             our %EXPORT_TAGS = (all => [ qw(deep_ret sym_ret ret_bound) ]);
12             our @EXPORT_OK = @{$EXPORT_TAGS{all}};
13             our @EXPORT = @{$EXPORT_TAGS{all}};
14              
15             our $VERSION = '1.004';
16              
17             require XSLoader;
18             XSLoader::load('Return::Deep', $VERSION);
19              
20             sub ret_bound(&;$) {
21 32     32 1 7140 my($act, $symbol) = @_;
22 32         69 my $guard = add_bound($act, $symbol);
23 32         59 $act->();
24             }
25              
26             sub regex_match {
27 1     1   9 no warnings 'uninitialized';
  1         2  
  1         70  
28 7     7 0 143 $_[1] =~ $_[0];
29             }
30              
31             1;
32             __END__