DAS/NO.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 84.0% 21 / 25 CC 3 SCAR 6.5
CC
3
Cov
89%
parse
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« DAS/UK.pm ↑ Summary DAS/LT.pm »
1 package Net::DAS::NO;
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(no)],
9 public => {
10 host => 'whois.norid.no',
11 port => 79,
12 },
13 dispatch => [ undef, \&parse ],
14 };
15 }
16  
17 4 ▶sub parse {
Subroutine parse: called CC=3 SCAR=11.4
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 DELEGATED/;
Branch: 1 branch
BranchTrueFalseTotal
if uc($i) =~ /IS DELEGATED/ 2 0 2
21 0 return (-100); # failed to determine/parse
22 }
23  
24 2 1;
25  
26 =pod
27  
28 =head1 NAME
29  
30 Net::DAS::NO - Net::DAS .NO extension.
31  
32 See L<Net::DAS>
33  
34 =head1 AUTHOR
35  
36 Michael Holloway <michael@thedarkwinter.com>
37  
38 =head1 LICENSE
39  
40 Artistic License
41  
42 =cut
« DAS/UK.pm ↑ Summary DAS/LT.pm »