File Coverage

blib/lib/Memorator/Util.pm
Criterion Covered Total %
statement 9 12 75.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 17 76.4


line stmt bran cond sub pod time code
1             package Memorator::Util;
2 1     1   6 use strict;
  1         1  
  1         22  
3 1     1   4 use warnings;
  1         1  
  1         70  
4             { our $VERSION = '0.005001'; }
5              
6 1     1   5 use Exporter qw< import >;
  1         1  
  1         91  
7             our @EXPORT_OK = qw< local_name >;
8              
9             sub local_name {
10 0     0 1   my ($name, $suffix) = @_;
11 0           (my $retval = $name . '_' . $suffix) =~ s{\W}{_}gmxs;
12 0           return $retval;
13             }
14              
15             1;