File Coverage

blib/lib/Regexp/Common/URI/fax.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Regexp::Common::URI::fax;
2              
3 72     72   489 use Regexp::Common qw /pattern clean no_defaults/;
  72         230  
  72         493  
4 72     72   497 use Regexp::Common::URI qw /register_uri/;
  72         171  
  72         5330  
5 72         9481 use Regexp::Common::URI::RFC2806 qw /$fax_subscriber
6 72     72   26351 $fax_subscriber_no_future/;
  72         279  
7              
8 72     72   529 use strict;
  72         151  
  72         1597  
9 72     72   369 use warnings;
  72         153  
  72         1935  
10              
11 72     72   403 use vars qw /$VERSION/;
  72         156  
  72         8241  
12             $VERSION = '2017060201';
13              
14              
15             my $fax_scheme = 'fax';
16             my $fax_uri = "(?k:(?k:$fax_scheme):(?k:$fax_subscriber))";
17             my $fax_uri_nf = "(?k:(?k:$fax_scheme):(?k:$fax_subscriber_no_future))";
18              
19             register_uri $fax_scheme => $fax_uri;
20              
21             pattern name => [qw (URI fax)],
22             create => $fax_uri
23             ;
24              
25             pattern name => [qw (URI fax nofuture)],
26             create => $fax_uri_nf
27             ;
28              
29             1;
30              
31             __END__