DRI/Protocol/IRIS/DCHK/Status.pm

filter: Statementstmt 54.1% 13 / 24 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 50.0% 4 / 8 Podpod 75.0% 3 / 4 totaltotal 44.4% 20 / 45 CC 4 SCAR 16.3
CC
4
Cov
42%
new
12.0
is_active
6.0
is_published
2.0
CRAP 5.1
« DRI/Protocol/EPP/Extensions/AFNIC/Session.pm ↑ Summary DRI/Protocol/Whois/Domain/US.pm »
1 ## Domain Registry Interface, IRIS DCHK Status
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::Protocol::IRIS::DCHK::Status;
16  
17 1 ▶use base qw!Net::DRI::Data::StatusList!;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 1 ▶use Net::DRI::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 =pod
25  
26 =head1 NAME
27  
28 Net::DRI::Protocol::IRIS::DCHK::Status - IRIS DCHK Domain Status for Net::DRI
29  
30 =head1 DESCRIPTION
31  
32 Please see the README file for details.
33  
34 =head1 SUPPORT
35  
36 For now, support questions should be sent to:
37  
38 E<lt>netdri@dotandco.comE<gt>
39  
40 Please also see the SUPPORT file in the distribution.
41  
42 =head1 SEE ALSO
43  
44 E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
45  
46 =head1 AUTHOR
47  
48 Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
49  
50 =head1 COPYRIGHT
51  
52 Copyright (c) 2008,2010 Patrick Mevzek <netdri@dotandco.com>.
53 All rights reserved.
54  
55 This program is free software; you can redistribute it and/or modify
56 it under the terms of the GNU General Public License as published by
57 the Free Software Foundation; either version 2 of the License, or
58 (at your option) any later version.
59  
60 See the LICENSE file that comes with this distribution for more details.
61  
62 =cut
63  
64 ####################################################################################################
65  
66 sub new
67 {
68 0 ▶ my $class=shift;
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
69 0 my $self=$class->SUPER::new('iris-dchk','1.0');
70 0 my $msg=shift;
71 0 ▶ return $self unless defined $msg;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $msg 0 0 0
72 0 ▶ Net::DRI::Exception::err_invalid_parameters('new() expects a ref array') unless ref $msg eq 'ARRAY';
Branch: 1 branch
BranchTrueFalseTotal
unless ref $msg eq "ARRAY" 0 0 0
73 0 $self->add(@$msg);
74 0 return $self;
75 }
76  
77 0 ▶sub is_active { my $s; return $s->has_any('active') && $s->has_not('inactive'); }
Subroutine is_active: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/3
$s->has_any('active') && $s->has_not('inactive')
!ll&&!rl&&r
000
MC/DC0%0/2
$s->has_any('active') && $s->has_not('inactive')
$s->has_any('active') $s->has_not('inactive')
Truth table0%0/3
A && B
A= $s->has_any('active')B= $s->has_not('inactive')
ABresult
0X0
100
111
78 0 ▶sub is_published { return shift->has_not('inactive'); }
Subroutine is_published: not called CC=1 SCAR=6.9
Pod documented
79 0 ▶sub is_pending { return shift->has_any('dispute'); }
Subroutine is_pending: not called CC=1 SCAR=6.9
Pod documented
80  
81 ####################################################################################################
82 1 1;
« DRI/Protocol/EPP/Extensions/AFNIC/Session.pm ↑ Summary DRI/Protocol/Whois/Domain/US.pm »