Path/File/Unix.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Path/DZIL.pm ↑ Summary Path/PerlClass.pm »
1 package Parse::Path::File::Unix;
2  
3 2 our $VERSION = '0.92'; # VERSION
4 # ABSTRACT: /UNIX/file/path/support
5  
6 #############################################################################
7 # Modules
8  
9 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use sanity;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 2 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 2 ▶no warnings 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 #############################################################################
16 # Required Methods
17  
18 2 with 'Parse::Path::Role::Path';
19  
20 12 ▶sub _build_blueprint { {
Subroutine _build_blueprint: called CC=1 SCAR=0.0
21 12 hash_step_regexp => qr{
22 # Illegal characters are a mere \0 and /
23 (?<key>[^/\0]*)
24 }x,
25  
26 array_step_regexp => qr/\Z.\A/, # no-op; arrays not supported
27 delimiter_regexp => qr{/+}, # + to capture repetitive slashes, like foo////bar
28  
29 # no support for escapes
30 unescape_translation => [],
31  
32 pos_translation => [
33 [qr{^/+$}, 0],
34 [qr{^\.\./*$}, 'X-1'],
35 [qr{^\./*$}, 'X-0'],
36 [qr{.?}, 'X+1'],
37 ],
38  
39 delimiter_placement => {
40 '0R' => '/',
41 HH => '/',
42 },
43  
44 array_key_sprintf => '',
45 hash_key_stringification => [
46 [qr/.?/, '%s'],
47 ],
48 } }
49  
50 2 42;
51  
52 __END__
« Path/DZIL.pm ↑ Summary Path/PerlClass.pm »