Common/URI/file.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Common/URI/fax.pm ↑ Summary Common/URI/http.pm »
1 package Regexp::Common::URI::file;
2  
3 71 ▶use Regexp::Common qw /pattern clean no_defaults/;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 71 ▶use Regexp::Common::URI qw /register_uri/;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 71 ▶use Regexp::Common::URI::RFC1738 qw /$host $fpath/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 71 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 71 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 71 our $VERSION = '2024080801';
11  
12  
13 71 my $scheme = 'file';
14 71 my $uri = "(?k:(?k:$scheme)://(?k:(?k:(?:$host|localhost)?)" .
15 "(?k:/(?k:$fpath))))";
16  
17 71 register_uri $scheme => $uri;
18  
19 71 pattern name => [qw (URI file)],
20 create => $uri,
21 ;
22  
23 71 1;
24  
25 __END__
« Common/URI/fax.pm ↑ Summary Common/URI/http.pm »