Branch Coverage

blib/lib/Net/WURFL/ScientiaMobile.pm
Criterion Covered Total %
branch 14 52 26.9


line true false branch
120 0 1 if @{$self->_current_server;} == 1
121 1 0 if keys %{$self->wcloud_servers;} == 1
150 0 1 if ref $search_capabilities eq 'ARRAY'
153 1 0 if (not ref $result eq 'HASH') { }
157 0 0 if ($self->getSource eq 'cloud')
165 0 0 if (not $self->_allCapabilitiesPresent)
170 0 0 if ($self->getSource eq 'cloud')
179 0 0 first(sub { not exists $self->capabilities->{$_}; } , @{$self->_search_capabilities;}) ? :
187 0 0 if exists $self->capabilities->{$capability}
189 0 0 unless ($self->_http_success)
195 0 0 if ($self->_source eq 'cloud')
197 0 0 if exists $self->capabilities->{$capability}
209 0 1 if ref $env eq 'Mojo::Headers'
210 0 1 if (ref $env eq 'HTTP::Headers')
217 0 1 if (defined $$env{'QUERY_STRING'} and $$env{'QUERY_STRING'} =~ /\bUA=([^&]+)/) { }
232 0 1 if ($self->report_interval > 0 and $self->cache->getReportAge >= $self->report_interval)
252 0 1 if ($ip)
253 0 0 $fwd ? :
258 0 1 if $self->_http_request->{'HTTP_ACCEPT'}
261 0 1 if $wap_profile
266 1 0 @{$self->_search_capabilities;} == 0 ? :
278 1 0 unless ($response->is_success)
286 1 0 if (exists $exceptions_by_status{$response->message}) { }
316 0 0 unless $self->_loaded_date
324 0 0 if (not $cache_mtime or $cache_mtime != $self->_loaded_date)
326 0 0 if $self->auto_purge