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   69402 use 5.008;
  1         4  
4 1     1   5 use strict;
  1         2  
  1         20  
5 1     1   4 use warnings;
  1         2  
  1         249  
6              
7             require Exporter;
8              
9             our @ISA = qw(Exporter);
10              
11             our %EXPORT_TAGS = (all => [ qw(deep_ret sym_ret ret_bound deep_wantarray sym_wantarray) ]);
12             our @EXPORT_OK = @{$EXPORT_TAGS{all}};
13             our @EXPORT = @{$EXPORT_TAGS{all}};
14              
15             our $VERSION = '1.005';
16              
17             require XSLoader;
18             XSLoader::load('Return::Deep', $VERSION);
19              
20             sub ret_bound(&;$) {
21 35     35 1 7732 my($act, $symbol) = @_;
22 35         79 my $guard = add_bound($act, $symbol);
23 35         59 $act->();
24             }
25              
26             sub regex_match {
27 1     1   7 no warnings 'uninitialized';
  1         2  
  1         79  
28 7     7 0 142 $_[1] =~ $_[0];
29             }
30              
31             1;
32             __END__