DRI/DRD/Example.pm

filter: Statementstmt 77.2% 17 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 70.0% 7 / 10 Podpod 57.1% 4 / 7 totaltotal 70.7% 29 / 41 CC 2 SCAR 4.1
CC
2
Cov
75%
transport_protocol_default
2.3
periods
2.0
object_types
2.0
CRAP 1.5
« DRI/DRD/NASK.pm ↑ Summary DRI/DRD/CZNIC.pm »
1 ## Domain Registry Interface, Example Driver for .EXAMPLE
2 ##
3 ## Copyright (c) 2018 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::Example;
16  
17 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 13 ▶use base qw/Net::DRI::DRD/;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 ####################################################################################################
23  
24 sub new
25 12 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
26 12 my $class=shift;
27 12 my $self=$class->SUPER::new(@_);
28 12 return $self;
29 }
30  
31 0 ▶sub periods { return map { DateTime::Duration->new(years => $_) } (1..10); }
Subroutine periods: not called CC=1 SCAR=6.9
Pod documented
32 12 ▶sub name { return 'EXAMPLE'; }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
33 12 ▶sub tlds { return qw/example/; }
Subroutine tlds: called CC=1 SCAR=0.0
Pod documented
34 0 ▶sub object_types { return qw/domain ns contact/; }
Subroutine object_types: not called CC=1 SCAR=6.9
Pod documented
35 0 ▶sub profile_types { return qw/epp/; }
Subroutine profile_types: not called CC=1 SCAR=6.9
Pod undocumented
36  
37 sub transport_protocol_default
38 12 ▶{
Subroutine transport_protocol_default: called CC=2 SCAR=8.1
Pod undocumented
39 12 my ($self,$type)=@_;
40  
41 12 ▶ return ('Net::DRI::Transport::Socket',{remote_host=>'localhost', remote_port=>700},'Net::DRI::Protocol::EPP',{}) if $type eq 'epp';
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "epp" 12 0 12
42 0 return;
43 }
44  
45 ####################################################################################################
46 13 1;
47  
48 __END__
« DRI/DRD/NASK.pm ↑ Summary DRI/DRD/CZNIC.pm »