Condition Coverage

lib/Apache/Solr.pm
Criterion Covered Total %
condition 32 79 40.5


and 3 conditions

line !l l&&!r l&&r condition
41 2 0 20 $b && $b ne 'false' && $b ne 'off'
86 4 0 0 builtin::blessed($uri) and $uri->isa("URI")
96 0 0 0 @_ && ref $_[0] eq 'HASH'
224 0 0 0 $self->serverVersion ge "1.4" and not $self->isa("Apache::Solr::JSON")
257 0 0 0 $fn and not ref $fn
340 45 2 43 defined $prefix and index($k, $prefix) != 0
344 89 0 1 $dv = $Apache::Solr::deprecated{$param} and $sv ge $dv
80 9 0 $iv = $Apache::Solr::introduced{$param} and $iv gt $sv
419 35 0 2 $p[0] eq 'f' && @p > 2
532 0 0 0 $wait and $retries

or 2 conditions

line l !l condition
50 0 2 delete $args{'format'} || 'XML'
64 0 4 $args->{'server_version'} || '9.8'
65 0 4 $args->{'retry_wait'} // 5
66 0 4 $args->{'retry_max'} // 60
478 1 0 $args{'params'} || []

or 3 conditions

line l !l&&r !l&&!r condition
51 2 0 0 $format eq "XML" or $format eq "JSON"
69 0 4 0 $args->{'agent'} || $http_agent || 'LWP::UserAgent'->new('keep_alive', 1)
257 0 0 0 $p{'resource.name'} ||= $fn
278 0 0 0 $ct ||= $mimetypes->mimeTypeOf($fn)
294 0 0 0 $params->{'core'} ||= $self->core
327 0 1 3 not $sub or index($sub, "Apache::Solr::") == -1
383 6 0 4 not ref $v or ref $v eq "SCALAR"
1 1 2 $k eq "literal" or $k eq "literals"
1 1 0 $k eq "fmap" or $k eq "boost"
2 0 0 $k eq "fmap" or $k eq "boost" or $k eq "resource"
424 13 2 0 not $per_field or $def->[0]
473 0 1 0 $args{'core'} || $self->core
536 0 0 0 $result->solrError || $result->httpError