File Coverage

blib/lib/XML/Elemental/Util.pm
Criterion Covered Total %
statement 9 12 75.0
branch 0 2 0.0
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 19 68.4


line stmt bran cond sub pod time code
1             package XML::Elemental::Util;
2 1     1   1457 use strict;
  1         3  
  1         34  
3              
4 1     1   5 use Exporter;
  1         2  
  1         155  
5             @XML::Elemental::Util::ISA = qw( Exporter );
6 1     1   5 use vars qw( @EXPORT_OK );
  1         3  
  1         133  
7             @EXPORT_OK = qw( process_name );
8              
9             sub process_name {
10 0     0 1   $_[0] =~ m/^{(.*)}(.+)$/;
11 0 0         my $ns = defined $1 ? $1 : '';
12 0           $2, $ns;
13             }
14              
15             #--- more to come?
16              
17             1;
18              
19             __END__