Branch Coverage

File:blib/lib/Geo/GeoNames.pm
Coverage:55.3%

line%coveragebranch
26850TFref $_[0] eq 'HASH' ? :
27050TFif (not defined $class) { }
50TFelsif (ref $class) { }
282100TFunless length $args{'username'}
293100TFif exists $args{'ua'} and not ref $args{'ua'} && &blessed($args{'ua'}) && ($args{'ua'}->isa('Mojo::UserAgent') || $args{'ua'}->isa('LWP::UserAgent'))
30650TFif @_ == 2
32850TFif (@_)
346100TFif @_ == 2
36150TFif ($flags =~ /d/ and exists $hash->{$arg})
36550TFif ($flags eq "r" and not exists $hash->{$arg})
36850TFif (not $flags =~ /m/ and exists $hash->{$arg} and ref $hash->{$arg})
371100TFif ($flags eq "rc")
373100TFif (exists $hash->{$arg})
37950TFif ($conditional_mandatory_required == 1 and $conditional_mandatory_flag != 1)
38350TFunless defined $valid_parameters{$request}{$key}
38450TFref $hash->{$key} ? :
400100TFif ($xml->{'status'})
405100TFif $single_result
409100TFif ref $xml->{$element} ne "ARRAY"
411100TFif ref $list ne "HASH"
413100TFunless defined $list->{$attribute}[0]
414100TFscalar @{$list->{$attribute};} == 1 ? :
43950TFif ($self->{'logger'})
44550TFif ($res->can("res"))
44750TFunless ($response->is_success)
4570TFunless ($res->is_success)
4640TF$res->can('res') ? :
47450TFunless defined $response
47850TFunless ($status_code >= 200 and $status_code < 300)
49250TF$response->can('body') ? :
49550TFif ($base_mime_type eq "text/xml" or $base_mime_type eq "application/xml")
5000TFif ($base_mime_type eq "application/json")
5030TFif ($body =~ /\A\{/) { }
5040TFif ($response->can('json')) { }
5150TFif ($base_mime_type eq 'text/plain') { }
0TFelsif ($base_mime_type eq 'text/html') { }
53250TFunless ref $self
53650TFunless (exists $self->{'_functions'}{$name})