Common/URI/fax.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/RFC2806.pm ↑ Summary Common/URI/file.pm »
1 package Regexp::Common::URI::fax;
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 /$fax_subscriber
Subroutine BEGIN: called CC=1 SCAR=0.0
6 71 $fax_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 $fax_scheme = 'fax';
15 71 my $fax_uri = "(?k:(?k:$fax_scheme):(?k:$fax_subscriber))";
16 71 my $fax_uri_nf = "(?k:(?k:$fax_scheme):(?k:$fax_subscriber_no_future))";
17  
18 71 register_uri $fax_scheme => $fax_uri;
19  
20 71 pattern name => [qw (URI fax)],
21 create => $fax_uri
22 ;
23  
24 71 pattern name => [qw (URI fax nofuture)],
25 create => $fax_uri_nf
26 ;
27  
28 71 1;
29  
30 __END__
« Common/URI/RFC2806.pm ↑ Summary Common/URI/file.pm »