Branch Coverage

blib/lib/Net/Nslookup.pm
Criterion Covered Total %
branch 19 34 55.8


line true false branch
51 1 14 @_ % 2 ? :
0 15 isa($_[0], 'HASH') ? :
63 15 0 unless defined $$options{'timeout'}
66 9 6 unless defined $$options{'debug'}
71 15 0 unless $Net::Nslookup::WIN32
76 0 15 if ($$options{'debug'})
80 15 0 if (my $q = $res->search($term, $type))
81 0 15 if ('SOA' eq $type) { }
92 1 0 if ($$options{'recurse'} and 'NS' eq $type || 'MX' eq $type || 'CNAME' eq $type)
109 15 0 unless $Net::Nslookup::WIN32
112 0 15 if ($@)
113 0 0 unless $@ eq "alarm\n"
118 10 5 if @answers == 1
119 5 0 wantarray ? :
127 6 9 unless (defined $res{$server})
133 0 6 if ($server)
134 0 0 if (ref $server eq 'ARRAY') { }