ParseWhois/Domain/Registrar/NameSecure.pm untested

filter: Statementstmt 0.0% 0 / 35 Branchbran 0.0% 0 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 12 Podpod 0.0% 0 / 10 totaltotal 0.0% 0 / 71 CC 8 SCAR 34.5
CC
8
Cov
0%
parse_text
72.0
rdebug
2.0
regex_org_start
2.0
CRAP 31.5
1 # Program: Net::ParseWhois::Domain::Registrar class for NameSecure
2 # Version: 1.0
3 # Purpose: Parsing methods and configuration for the NameSecure LLC Registrar
4 # Written: 11/28/05 by Jeff Mercer <riffer@vaxer.net>
5  
6 package Net::ParseWhois::Domain::Registrar::NameSecure;
7  
8 require 5.004;
9 use strict;
10  
11 @Net::ParseWhois::Domain::Registrar::NameSecure::ISA = qw(Net::ParseWhois::Domain::Registrar);
12 $Net::ParseWhois::Domain::Registrar::NameSecure::VERSION = 1.0;
13  
14 sub rdebug { 0 }
15 sub regex_org_start { '^Registrant:'}
16 sub regex_no_match { '^No match for \"' }
17 sub regex_created { '^Created on (.*)$' }
18 sub regex_expires { '^Expires on (.*)$' }
19 sub regex_domain { '^Domain: (.*)$' }
20 sub regex_nameservers { '^Name Servers:$' }
21 # Billing contacts no longer given via WHOIS
22 sub my_contacts { [ qw(Administrative Technical) ] }
23 sub my_data { [ qw(my_contacts regex_org_start regex_no_match regex_created regex_expires regex_domain regex_nameservers) ] }
24  
25 sub parse_text {
26 my $self = shift;
27 my $text = shift; # array ref, one line per element
28  
29 # Because NameSecure doesn't give the last time a domain record was
30 # updated, we need to pre-fill that data value so the parse_contacts
31 # method won't screw-up. --jcm, 11/28/05
32 $self->{RECORD_UPDATED}="n/a";
33  
34 $self->dump_text($text) if $self->rdebug;
35  
36 $self->parse_start($text);
37 $self->dump_text($text) if $self->rdebug;
38 $self->parse_org($text);
39 $self->dump_text($text) if $self->rdebug;
40 $self->parse_domain_name($text);
41 $self->dump_text($text) if $self->rdebug;
42 $self->parse_domain_stats($text);
43 $self->dump_text($text) if $self->rdebug;
44 $self->parse_contacts($text);
45 $self->dump_text($text) if $self->rdebug;
46 $self->parse_nameservers($text);
47 $self->dump_text($text) if $self->rdebug;
48  
49 return $self;
50 }
51  
52 1;