File Coverage

blib/lib/Pcore/Util/URI/Path.pm
Criterion Covered Total %
statement 11 12 91.6
branch 2 4 50.0
condition n/a
subroutine 5 6 83.3
pod n/a
total 18 22 81.8


line stmt bran cond sub pod time code
1             package Pcore::Util::URI::Path;
2              
3 5     5   30 use Pcore;
  5         10  
  5         27  
4 5     5   31 use base qw[Pcore::Util::Path];
  5         10  
  5         1114  
5              
6             use overload #
7             q[""] => sub {
8 3     3   185 return $_[0]->to_uri;
9             },
10             q[cmp] => sub {
11 21 100   21   405 return !$_[2] ? $_[0]->to_uri cmp $_[1] : $_[1] cmp $_[0]->to_uri;
12             },
13             q[~~] => sub {
14 0 0   0     return !$_[2] ? $_[0]->to_uri ~~ $_[1] : $_[1] ~~ $_[0]->to_uri;
15             },
16 5     5   35 fallback => undef;
  5         8  
  5         58  
17              
18             1;
19             __END__
20             =pod
21              
22             =encoding utf8
23              
24             =head1 NAME
25              
26             Pcore::Util::URI::Path
27              
28             =head1 SYNOPSIS
29              
30             =head1 DESCRIPTION
31              
32             =head1 ATTRIBUTES
33              
34             =head1 METHODS
35              
36             =head1 SEE ALSO
37              
38             =cut