Condition Coverage

lib/Apache/Solr.pm
Criterion Covered Total %
condition 30 69 43.4


and 3 conditions

line !l l&&!r l&&r condition
37 2 0 20 $b && $b ne 'false' && $b ne 'off'
82 4 0 0 &blessed($uri) and $uri->isa("URI")
92 0 0 0 @_ && ref $_[0] eq 'HASH'
223 0 0 0 $self->serverVersion ge "1.4" and not $self->isa("Apache::Solr::JSON")
256 0 0 0 $fn and not ref $fn
344 45 2 43 defined $prefix and index($k, $prefix) != 0
348 89 0 1 $dv = $Apache::Solr::deprecated{$param} and $sv ge $dv
80 9 0 $iv = $Apache::Solr::introduced{$param} and $iv gt $sv
423 35 0 2 $p[0] eq 'f' && @p > 2

or 2 conditions

line l !l condition
46 0 2 delete $args{'format'} || 'XML'
60 0 4 $args->{'server_version'} || '4.5'
484 1 0 $args{'params'} || []

or 3 conditions

line l !l&&r !l&&!r condition
47 2 0 0 $format eq "XML" or $format eq "JSON"
63 0 4 0 $args->{'agent'} || $http_agent || 'LWP::UserAgent'->new('keep_alive', 1)
256 0 0 0 $p{'resource.name'} ||= $fn
280 0 0 0 $ct ||= $mimetypes->mimeTypeOf($fn)
295 0 0 0 $params->{'core'} ||= $self->core
331 0 1 3 not $sub or index($sub, "Apache::Solr::") < 0
387 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"
428 13 2 0 not $per_field or $def->[0]
479 0 1 0 $args{'core'} || $self->core