Path/PerlClass.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/File/Unix.pm ↑ Summary Path/PerlClassUTF8.pm »
1 package Parse::Path::PerlClass;
2  
3 2 our $VERSION = '0.92'; # VERSION
4 # ABSTRACT: Perl::Class::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 13 ▶sub _build_blueprint { {
Subroutine _build_blueprint: called CC=1 SCAR=0.0
21 13 hash_step_regexp => qr{
22 (?<key>[a-zA-Z_]\w*)
23 }x,
24  
25 array_step_regexp => qr/\Z.\A/, # no-op; arrays not supported
26 delimiter_regexp => qr{::|'},
27 delimiter_regexp => qr{(?:\:\:|')(?=[a-zA-Z_])}, # no dangling delimiters
28  
29 # no support for escapes
30 unescape_translation => [],
31  
32 pos_translation => [
33 [qr/.?/, 'X+1'],
34 ],
35  
36 delimiter_placement => {
37 HH => '::',
38 },
39  
40 array_key_sprintf => '',
41 hash_key_stringification => [
42 [qr/.?/, '%s'],
43 ],
44 } }
45  
46 2 42;
47  
48 __END__
« Path/File/Unix.pm ↑ Summary Path/PerlClassUTF8.pm »