DRI/DRD/IITCNR.pm

filter: Statementstmt 56.6% 17 / 30 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 41.6% 5 / 12 Podpod 57.1% 4 / 7 totaltotal 50.9% 26 / 51 CC 2 SCAR 8.0
CC
2
Cov
53%
transport_protocol_default
6.0
new
2.0
periods
2.0
CRAP 2.2
« DRI/DRD/TELEGreenland.pm ↑ Summary DRI/DRD/UPU.pm »
1 ## Domain Registry Interface, IIT CNR (.IT) policies
2 ##
3 ## Copyright (c) 2009-2011,2016 Patrick Mevzek <netdri@dotandco.com>. All rights reserved.
4 ##
5 ## This file is part of Net::DRI
6 ##
7 ## Net::DRI is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; either version 2 of the License, or
10 ## (at your option) any later version.
11 ##
12 ## See the LICENSE file that comes with this distribution for more details.
13 ####################################################################################################
14  
15 package Net::DRI::DRD::IITCNR;
16  
17 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 ▶use base qw/Net::DRI::DRD/;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 1 ▶use Net::DRI::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use DateTime::Duration;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 1 __PACKAGE__->make_exception_for_unavailable_operations(qw/host_check host_info host_update host_delete host_create contact_transfer contact_transfer_start contact_transfer_stop contact_transfer_query contact_transfer_accept contact_transfer_refuse domain_renew/);
26  
27 =pod
28  
29 =head1 NAME
30  
31 Net::DRI::DRD::IITCNR - IIT CNR (.IT) policies for Net::DRI
32  
33 =head1 DESCRIPTION
34  
35 Please see the README file for details.
36  
37 =head1 SUPPORT
38  
39 For now, support questions should be sent to:
40  
41 E<lt>netdri@dotandco.comE<gt>
42  
43 Please also see the SUPPORT file in the distribution.
44  
45 =head1 SEE ALSO
46  
47 E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
48  
49 =head1 AUTHOR
50  
51 Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
52  
53 =head1 COPYRIGHT
54  
55 Copyright (c) 2009-2011,2016 Patrick Mevzek <netdri@dotandco.com>.
56 All rights reserved.
57  
58 This program is free software; you can redistribute it and/or modify
59 it under the terms of the GNU General Public License as published by
60 the Free Software Foundation; either version 2 of the License, or
61 (at your option) any later version.
62  
63 See the LICENSE file that comes with this distribution for more details.
64  
65 =cut
66  
67 ####################################################################################################
68  
69 sub new
70 {
71 0 ▶ my $class=shift;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
72 0 my $self=$class->SUPER::new(@_);
73 0 $self->{info}->{host_as_attr}=1;
74 0 return $self;
75 }
76  
77 0 ▶sub periods { return map { DateTime::Duration->new(years => $_) } (1..10); }
Subroutine periods: not called CC=1 SCAR=6.9
Pod documented
78 0 ▶sub name { return 'IITCNR'; }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
79 0 ▶sub tlds { return ('it'); }
Subroutine tlds: not called CC=1 SCAR=6.9
Pod documented
80 0 ▶sub object_types { return ('domain','contact','ns'); }
Subroutine object_types: not called CC=1 SCAR=6.9
Pod documented
81 0 ▶sub profile_types { return qw/epp/; }
Subroutine profile_types: not called CC=1 SCAR=6.9
Pod undocumented
82  
83 sub transport_protocol_default
84 {
85 0 ▶ my ($self,$type)=@_;
Subroutine transport_protocol_default: not called CC=2 SCAR=17.9
Pod undocumented
86  
87 0 ▶ return ('Net::DRI::Transport::HTTP',{protocol_connection=>'Net::DRI::Protocol::EPP::Extensions::HTTP'},'Net::DRI::Protocol::EPP::Extensions::IT',{}) if $type eq 'epp'; ## EPP is over HTTPS here
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "epp" 0 0 0
88 0 return;
89 }
90  
91 ####################################################################################################
92 1 1;
« DRI/DRD/TELEGreenland.pm ↑ Summary DRI/DRD/UPU.pm »