DRI/DRD/DNSBelgium.pm

filter: Statementstmt 72.2% 26 / 36 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 64.2% 9 / 14 Podpod 44.4% 4 / 9 totaltotal 63.4% 40 / 63 CC 3 SCAR 7.4
CC
3
Cov
68%
transport_protocol_default
5.2
periods
2.0
object_types
2.0
CRAP 2.1
« DRI/DRD/puntCAT.pm ↑ Summary DRI/DRD/SITA.pm »
1 ## Domain Registry Interface, DNSBelgium (.BE) policies for Net::DRI
2 ##
3 ## Copyright (c) 2006-2011,2O16 Patrick Mevzek <netdri@dotandco.com>. All rights reserved.
4 ## (c) 2013 Michael Holloway <michael@thedarkwinter.com>. All rights reserved.
5 ##
6 ## This file is part of Net::DRI
7 ##
8 ## Net::DRI is free software; you can redistribute it and/or modify
9 ## it under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation; either version 2 of the License, or
11 ## (at your option) any later version.
12 ##
13 ## See the LICENSE file that comes with this distribution for more details.
14 #########################################################################################
15  
16 package Net::DRI::DRD::DNSBelgium;
17  
18 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 3 ▶use base qw/Net::DRI::DRD/;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 3 ▶use DateTime::Duration;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 3 __PACKAGE__->make_exception_for_unavailable_operations(qw/domain_transfer_stop domain_transfer_query domain_transfer_accept domain_transfer_refuse domain_renew contact_check contact_transfer/);
27  
28 =pod
29  
30 =head1 NAME
31  
32 Net::DRI::DRD::DNSBelgium - DNSBelgium (.BE) policies for Net::DRI
33  
34 =head1 DESCRIPTION
35  
36 Please see the README file for details.
37  
38 =head1 SUPPORT
39  
40 For now, support questions should be sent to:
41  
42 E<lt>netdri@dotandco.comE<gt>
43  
44 Please also see the SUPPORT file in the distribution.
45  
46 =head1 SEE ALSO
47  
48 E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
49  
50 =head1 AUTHOR
51  
52 Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
53  
54 =head1 COPYRIGHT
55  
56 Copyright (c) 2006-2011,2016 Patrick Mevzek <netdri@dotandco.com>.
57 (c) 2013 Michael Holloway <michael@thedarkwinter.com>.
58 All rights reserved.
59  
60 This program is free software; you can redistribute it and/or modify
61 it under the terms of the GNU General Public License as published by
62 the Free Software Foundation; either version 2 of the License, or
63 (at your option) any later version.
64  
65 See the LICENSE file that comes with this distribution for more details.
66  
67 =cut
68  
69 #####################################################################################
70  
71 sub new
72 2 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
73 2 my $class=shift;
74 2 my $self=$class->SUPER::new(@_);
75 2 $self->{info}->{host_as_attr}=1;
76 2 $self->{info}->{contact_i18n}=1; ## LOC only
77 2 return $self;
78 }
79  
80 0 ▶sub periods { return map { DateTime::Duration->new(years => $_) } (1); }
Subroutine periods: not called CC=1 SCAR=6.9
Pod documented
81 2 ▶sub name { return 'DNSBelgium'; }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
82 2 ▶sub tlds { return ('be'); }
Subroutine tlds: called CC=1 SCAR=0.0
Pod documented
83 0 ▶sub object_types { return (qw/domain contact nsgroup keygroup/); }
Subroutine object_types: not called CC=1 SCAR=6.9
Pod documented
84 0 ▶sub profile_types { return qw/epp das/; }
Subroutine profile_types: not called CC=1 SCAR=6.9
Pod undocumented
85  
86 sub transport_protocol_default
87 2 ▶{
Subroutine transport_protocol_default: called CC=3 SCAR=16.5
Pod undocumented
88 2 my ($self,$type)=@_;
89  
90 2 ▶ return ('Net::DRI::Transport::Socket',{},'Net::DRI::Protocol::EPP::Extensions::DNSBE',{}) if $type eq 'epp';
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "epp" 2 0 2
91 0 ▶ return ('Net::DRI::Transport::Socket',{remote_host=>'whois.dns.be'},'Net::DRI::Protocol::DAS',{no_tld=>1}) if $type eq 'das';
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "das" 0 0 0
92 0 return;
93 }
94  
95 ####################################################################################################
96 ## From ยง2 of Enduser_Terms_And_Conditions_fr_v3.1.pdf
97 sub verify_name_domain
98 0 ▶{
Subroutine verify_name_domain: not called CC=1 SCAR=6.9
Pod undocumented
99 0 my ($self,$ndr,$domain,$op)=@_;
100 0 return $self->_verify_name_rules($domain,$op,{ check_name => 1,
101 my_tld => 1,
102 min_length => 2,
103 no_double_hyphen => 1,
104 });
105 }
106  
107  
108 sub domain_request_authcode
109 0 ▶{
Subroutine domain_request_authcode: not called CC=1 SCAR=6.9
Pod undocumented
110 0 my ($self, $reg, $dom, $rd) = @_;
111 0 return $reg->process('domain', 'request_authcode', [$dom, $rd]);
112 }
113  
114  
115 #####################################################################################################
116 3 1;
« DRI/DRD/puntCAT.pm ↑ Summary DRI/DRD/SITA.pm »