DRI/DRD/NASK.pm

filter: Statementstmt 71.0% 27 / 38 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 64.2% 9 / 14 Podpod 44.4% 4 / 9 totaltotal 65.0% 41 / 63 CC 2 SCAR 4.1
CC
2
Cov
70%
transport_protocol_default
2.3
periods
2.0
object_types
2.0
CRAP 1.5
« DRI/DRD/CoCCA.pm ↑ Summary DRI/DRD/Example.pm »
1 ## Domain Registry Interface, NASK (.PL) policies
2 ##
3 ## Copyright (c) 2006,2008-2013,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::NASK;
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 Net::DRI::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 2 ▶use DateTime::Duration;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 2 __PACKAGE__->make_exception_for_unavailable_operations(qw/domain_transfer_accept domain_transfer_refuse contact_transfer_stop contact_transfer_query contact_transfer_accept contact_transfer_refuse/);
26  
27 =pod
28  
29 =head1 NAME
30  
31 Net::DRI::DRD::NASK - NASK (.PL) 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) 2006,2008-2013 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 1 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
71 1 my $class=shift;
72 1 my $self=$class->SUPER::new(@_);
73 1 $self->{info}->{host_as_attr}=0;
74 1 $self->{info}->{contact_i18n}=1; ## LOC only
75 1 return $self;
76 }
77  
78 0 ▶sub periods { return map { DateTime::Duration->new(years => $_) } (1..10); }
Subroutine periods: not called CC=1 SCAR=6.9
Pod documented
79 1 ▶sub name { return 'NASK'; }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
80 ## See http://www.dns.pl/english/dns-funk.html
81 1 ▶sub tlds { return ('pl',map { $_.'.pl'} qw/aid agro atm auto biz com edu gmina gsm info mail miasta media mil net nieruchomosci nom org pc powiat priv realestate rel sex shop sklep sos szkola targi tm tourism travel turystyka waw/ ); }
Subroutine tlds: called CC=1 SCAR=0.0
Pod documented
82 0 ▶sub object_types { return ('domain','contact','ns'); }
Subroutine object_types: not called CC=1 SCAR=6.9
Pod documented
83 0 ▶sub profile_types { return qw/epp/; }
Subroutine profile_types: not called CC=1 SCAR=6.9
Pod undocumented
84  
85 sub transport_protocol_default
86 1 ▶{
Subroutine transport_protocol_default: called CC=2 SCAR=8.1
Pod undocumented
87 1 my ($self,$type)=@_;
88  
89 1 ▶ return ('Net::DRI::Transport::HTTP',{protocol_connection=>'Net::DRI::Protocol::EPP::Extensions::HTTP'},'Net::DRI::Protocol::EPP::Extensions::PL',{}) if $type eq 'epp'; ## EPP is over HTTPS here
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "epp" 1 0 1
90 0 return;
91 }
92  
93 ####################################################################################################
94  
95 sub message_retrieve
96 0 ▶{
Subroutine message_retrieve: not called CC=1 SCAR=6.9
Pod undocumented
97 0 my ($self,$ndr,$id)=@_;
98 0 my $rc=$ndr->process('message','plretrieve',[$id]);
99 0 return $rc;
100 }
101  
102 sub report_create
103 0 ▶{
Subroutine report_create: not called CC=1 SCAR=6.9
Pod undocumented
104 0 my ($self,$ndr,$id,$rp)=@_;
105 0 my $rc=$ndr->process('report','create',[$id,$rp]);
106 0 return $rc;
107 }
108  
109 ####################################################################################################
110 2 1;
« DRI/DRD/CoCCA.pm ↑ Summary DRI/DRD/Example.pm »