Branch Coverage

lib/Net/Whois/Parser.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
90 0 2 if $@
92 2 0 ref $res[0] ? :
95 1 1 scalar @$res ? :
102 5 2 if ($args{'raw'}) { }
2 0 elsif ($args{'domain'}) { }
109 1 4 ref $args{'raw'} ? :
116 1 1 $whois ? :
130 0 8 $ans->{'srv'} && $PARSERS{$ans->{'srv'}} ? :
151 0 59 unless $hash->{$key}
157 8 51 if (exists $FIELD_NAME_CONV{$new_key})
161 53 6 unless ($GET_ALL_VALUES)
162 0 53 if (exists $res{$new_key} and not $flag{$new_key})
169 4 55 if (exists $res{$new_key}) { }
173 55 0 ref $hash->{$key} ? :
182 5 50 if (scalar @$value > 1) { }
189 10 45 if (exists $HOOKS{$key})
323 25 63 unless $line and $value
329 12 51 ref $data{$key} eq 'ARRAY' ? :
337 0 8 exists $data{'emails'} ? :
347 0 4 unless ref $value
357 16 0 $ip ? :