Branch Coverage

blib/lib/Geo/GeoNames.pm
Criterion Covered Total %
branch 37 58 63.7


line true false branch
225 2 7 unless length $hash{'username'}
234 3 4 if exists $hash{'ua'} and not ref $hash{'ua'} && &blessed($hash{'ua'}) && ($hash{'ua'}->isa('Mojo::UserAgent') || $hash{'ua'}->isa('LWP::UserAgent'))
237 0 4 exists $hash{'debug'} ? :
238 0 4 exists $hash{'cache'} ? :
247 7 1 if @_ == 2
269 4 0 if (@_)
285 7 1 if @_ == 2
300 0 1 if ($flags =~ /d/ and exists $hash->{$arg})
304 0 31 if ($flags eq "r" and not exists $hash->{$arg})
307 0 26 if (not $flags =~ /m/ and exists $hash->{$arg} and ref $hash->{$arg})
310 3 28 if ($flags eq "rc")
312 1 2 if (exists $hash->{$arg})
318 0 1 if ($conditional_mandatory_required == 1 and $conditional_mandatory_flag != 1)
322 0 2 unless defined $valid_parameters{$request}{$key}
323 0 2 ref $hash->{$key} ? :
339 1 2 if ($xml->{'status'})
344 1 1 if $single_result
348 2 3 if ref $xml->{$element} ne "ARRAY"
350 1 2 if ref $list ne "HASH"
352 48 48 unless defined $list->{$attribute}[0]
353 47 1 scalar @{$list->{$attribute};} == 1 ? :
379 1 0 $res->can('res') ? :
393 1 0 if ($response->can('body')) { }
400 1 0 if ($mime_type =~ m[\Atext/xml;?])
403 0 0 if ($mime_type =~ m[\Aapplication/json;?])
406 0 0 if ($body =~ /\A\{/) { }
407 0 0 if ($response->can('json')) { }
419 0 0 if ($mime_type eq 'text/plain') { }
439 0 1 unless (exists $self->{'_functions'}{$name})