DAS/SI.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 75.0% 21 / 28 CC 4 SCAR 11.8
CC
4
Cov
76%
parse
5.5
BEGIN
1.0
BEGIN
1.0
CRAP 3.3
« DAS.pm ↑ Summary DAS/UK.pm »
1 package Net::DAS::SI;
2 2 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶sub register {
Subroutine register: called CC=1 SCAR=0.0
Pod undocumented
7 return {
8 1 tlds => [qw(si)],
9 public => {
10 host => 'das.arnes.si',
11 port => 4343,
12 },
13 dispatch => [ undef, \&parse ],
14 };
15 }
16  
17 4 ▶sub parse {
Subroutine parse: called CC=4 SCAR=17.1
Pod undocumented
18 4 chomp( my $i = uc(shift) );
19 4 ▶ return 1 if uc($i) =~ m/IS AVAILABLE/;
Branch: 1 branch
BranchTrueFalseTotal
if uc($i) =~ /IS AVAILABLE/ 2 2 4
20 2 ▶ return 0 if uc($i) =~ m/IS REGISTERED/;
Branch: 1 branch
BranchTrueFalseTotal
if uc($i) =~ /IS REGISTERED/ 2 0 2
21 0 ▶ return -1 if uc($i) =~ m/IS FORBIDDEN/;
Branch: 1 branch
BranchTrueFalseTotal
if uc($i) =~ /IS FORBIDDEN/ 0 0 0
22 0 return (-100);
23 }
24  
25 2 1;
26  
27 =pod
28  
29 =head1 NAME
30  
31 Net::DAS::SI - Net::DAS .SI extension.
32  
33 See L<Net::DAS>
34  
35 =head1 AUTHOR
36  
37 Michael Holloway <michael@thedarkwinter.com>
38  
39 =head1 LICENSE
40  
41 Artistic License
42  
43 =cut
« DAS.pm ↑ Summary DAS/UK.pm »