Branch Coverage

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


line true false branch
87 0 2 if $@
89 2 0 ref $res[0] ? :
92 1 1 scalar @$res ? :
99 5 2 if ($args{'raw'}) { }
2 0 elsif ($args{'domain'}) { }
106 1 4 ref $args{'raw'} ? :
113 1 1 $whois ? :
125 0 8 $$ans{'srv'} && $PARSERS{$$ans{'srv'}} ? :
148 0 54 unless $$hash{$key}
153 8 46 if (exists $FIELD_NAME_CONV{$new_key})
157 48 6 unless ($GET_ALL_VALUES)
158 0 48 if (exists $res{$new_key} and not $flag{$new_key})
165 4 50 if (exists $res{$new_key}) { }
169 50 0 ref $$hash{$key} ? :
178 5 45 if (scalar @$value > 1) { }
185 10 40 if (exists $HOOKS{$key})
319 29 50 unless $line and $value
325 4 46 ref $data{$key} eq 'ARRAY' ? :
333 0 8 exists $data{'emails'} ? :
343 0 4 unless ref $value
353 8 0 $ip ? :