Common/URI/telnet.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 25 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Common/URI/tel.pm ↑ Summary Common/URI/tv.pm »
1 package Regexp::Common::URI::telnet;
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 /$user $password $host $port/;
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 $telnet_uri = "(?k:(?k:telnet)://(?:(?k:(?k:$user)(?::(?k:$password))?)\@)?"
14 . "(?k:(?k:$host)(?::(?k:$port))?)(?k:/)?)";
15  
16 71 register_uri telnet => $telnet_uri;
17  
18 71 pattern name => [qw (URI telnet)],
19 create => $telnet_uri,
20 ;
21  
22 71 1;
23  
24 __END__
« Common/URI/tel.pm ↑ Summary Common/URI/tv.pm »