Branch Coverage

blib/lib/Net/DAS.pm
Criterion Covered Total %
branch 36 66 54.5


line true false branch
63 11 0 unless exists $$self{'use_registrar'}
64 11 0 unless exists $$self{'timeout'}
65 0 11 unless exists $$self{'_request'}
67 11 0 if exists $$self{'modules'}
78 0 10 if ($@)
108 0 49 unless @domains
116 0 49 unless $$r{'module'} = $$self{'tlds'}{$$r{'tld'}}
117 35 14 defined $$self{$$r{'module'}}{'dispatch'} ? :
118 16 33 defined $$disp[0] ? :
125 27 22 defined $$disp[1] ? :
126 22 27 if $$r{'avail'} == 1
127 22 27 if $$r{'avail'} == 0
128 0 49 if $$r{'avail'} == -1
129 1 48 if $$r{'avail'} == -2
130 2 47 if $$r{'avail'} == -3
131 2 47 if $$r{'avail'} == -100
133 0 49 if ($@)
170 8 43 if $i =~ /(.*)\.(.*\..*)/ and exists $$self{'tlds'}{$2}
171 43 0 if $i =~ /(.*)\.(.*)/
184 0 0 $$self{'use_registrar'} && exists $$self{$m}{'registrar'} ? :
186 0 0 defined $$self{$m}{$svc}{'port'} ? :
187 0 0 defined $$self{$m}{$svc}{'proto'} ? :
188 0 0 unless ($$self{$m}{'sock'} and $$self{$m}{'sock'}->connected)
196 0 0 if $$self{$m}{'sock'}->atmark
198 0 0 unless (exists $$self{$m}{'close_cmd'})
214 0 22 if $i =~ /IP ADDRESS BLOCKED/
215 10 12 if $i =~ /.*STATUS:\sAVAILABLE/
216 10 2 if $i =~ /.*STATUS:\sNOT AVAILABLE/
217 0 2 if $i =~ /.*STATUS:\sNOT VALID/
229 0 60 unless defined $$self{'modules'}
232 0 0 unless exists $$self{$m} and not defined $$self{$m}{'sock'} and $$self{$m}{'sock'}->connected
233 0 0 if exists $$self{$m}{'close_cmd'}
247 11 0 if defined $$self{'modules'}