Branch Coverage

lib/Apache/Solr/XML.pm
Criterion Covered Total %
branch 24 48 50.0


line true false branch
61 0 0 unless $params{'wt'}
107 0 0 if $boost != 1
114 0 0 if $boost < "0.9999" or $boost > "1.0001"
118 0 0 if defined $field->{'update'}
157 0 0 if (&blessed($body) and $body->isa("XML::LibXML::Document"))
165 0 0 unless $ct =~ /xml/i
180 17 75 if (not ref $data) { }
68 7 elsif (ref $data eq 'HASH') { }
7 0 elsif (ref $data eq 'ARRAY') { }
0 0 elsif (ref $data eq 'DateTime') { }
185 23 45 if (my $lst = delete $d{'lst'})
186 10 13 ref $lst eq 'ARRAY' ? :
193 3 65 if (my $arr = delete $d{'arr'})
194 3 0 ref $arr eq 'ARRAY' ? :
197 1 5 if ref $values ne "ARRAY"
204 514 30 unless my $items = delete $d{$type}
205 18 12 ref $items eq 'ARRAY' ? :
207 81 1 ref $_ eq 'HASH' ? :
208 2 80 if $type eq "bool"
215 63 123 if ref $d{$key}
252 0 0 if (not defined $content) { }
0 0 elsif (ref $content eq 'HASH' or ref $content eq 'ARRAY') { }
254 0 0 ref $content eq 'HASH' ? :
257 0 0 ref $values eq 'ARRAY' ? :