Common/URI/tel.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Common/URI/prospero.pm ↑ Summary Common/URI/telnet.pm »
1 package Regexp::Common::URI::tel;
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::RFC2806 qw /$telephone_subscriber
Subroutine BEGIN: called CC=1 SCAR=0.0
6 71 $telephone_subscriber_no_future/;
7  
8 71 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 71 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 71 our $VERSION = '2024080801';
12  
13  
14 71 my $tel_scheme = 'tel';
15 71 my $tel_uri = "(?k:(?k:$tel_scheme):(?k:$telephone_subscriber))";
16 71 my $tel_uri_nf = "(?k:(?k:$tel_scheme):(?k:$telephone_subscriber_no_future))";
17  
18 71 register_uri $tel_scheme => $tel_uri;
19  
20 71 pattern name => [qw (URI tel)],
21 create => $tel_uri
22 ;
23  
24 71 pattern name => [qw (URI tel nofuture)],
25 create => $tel_uri_nf
26 ;
27  
28 71 1;
29  
30 __END__
« Common/URI/prospero.pm ↑ Summary Common/URI/telnet.pm »