DRI/DRD/CoCCA.pm

filter: Statementstmt 70.8% 17 / 24 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.6% 7 / 11 Podpod 57.1% 4 / 7 totaltotal 65.9% 29 / 44 CC 2 SCAR 4.3
CC
2
Cov
69%
transport_protocol_default
2.3
periods
2.0
object_types
2.0
CRAP 1.5
« DRI/Protocol/EPP/Extensions/ARNES/Status.pm ↑ Summary DRI/DRD/NASK.pm »
1 ## Domain Registry Interface, CoCCA Registry Driver for multiple TLDs
2 ##
3 ## Copyright (c) 2008-2010 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::CoCCA;
16  
17 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 2 ▶use base qw/Net::DRI::DRD/;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 2 ▶use DateTime::Duration;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 =pod
25  
26 =head1 NAME
27  
28 Net::DRI::DRD::CoCCA - CoCCA Registry driver for Net::DRI
29  
30 =head1 DESCRIPTION
31  
32 Please see the README file for details.
33  
34 This is only a prototype for testing purpose. Each TLD registry should have its own DRD module
35 implementing local policies.
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) 2008-2010 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 0 ▶sub periods { return map { DateTime::Duration->new(years => $_) } (1..5); }
Subroutine periods: not called CC=1 SCAR=6.9
Pod documented
70 1 ▶sub name { return 'CoCCA'; }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
71 1 ▶sub tlds { return (qw/cx gs tl ki mu nf ht na ng cc cm sb mg/); }
Subroutine tlds: called CC=1 SCAR=0.0
Pod documented
72 0 ▶sub object_types { return ('domain','ns','contact'); }
Subroutine object_types: not called CC=1 SCAR=6.9
Pod documented
73 0 ▶sub profile_types { return qw/epp/; }
Subroutine profile_types: not called CC=1 SCAR=6.9
Pod undocumented
74  
75 sub transport_protocol_default
76 1 ▶{
Subroutine transport_protocol_default: called CC=2 SCAR=8.1
Pod undocumented
77 1 my ($self,$type)=@_;
78  
79 1 ▶ return ('Net::DRI::Transport::Socket',{remote_host => 'ote.epp.cocca.cx'},'Net::DRI::Protocol::EPP',{}) if $type eq 'epp';
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "epp" 1 0 1
80 0 return;
81 }
82  
83 ####################################################################################################
84  
85 sub verify_duration_transfer
86 0 ▶{
Subroutine verify_duration_transfer: not called CC=1 SCAR=6.9
Pod undocumented
87 0 my ($self,$ndr,$duration,$domain,$op)=@_;
88  
89 0 return $self->_verify_duration_transfer_15days($ndr,$duration,$domain,$op);
90 }
91  
92 ####################################################################################################
93 2 1;
« DRI/Protocol/EPP/Extensions/ARNES/Status.pm ↑ Summary DRI/DRD/NASK.pm »