Branch Coverage

blib/lib/REST/Utils.pm
Criterion Covered Total %
branch 39 40 97.5


line true false branch
70 0 15 unless $$a[0][0] <=> $$b[0][0]
74 17 3 $weighted_matches[-1][0][1] ? :
107 2 8 if ($CGI::POST_MAX != -1 and $len > $CGI::POST_MAX)
111 2 6 if (defined $cgi->param('POSTDATA')) { }
1 5 elsif (defined $cgi->param('PUTDATA')) { }
128 4 4 defined $content ? :
147 56 117 unless shift @parsed_ranges
149 116 1 defined $subtype ? :
150 30 21 if ($type eq $target_type || $type eq '*' || $target_type eq '*' and $subtype eq $target_subtype || $subtype eq '*' || $target_subtype eq '*')
157 6 71 if $_ ne 'q' and exists $$params{$_}
163 41 21 $type eq $target_type ? :
167 32 30 $subtype eq $target_subtype ? :
172 40 22 if ($fitness > $best_fitness)
215 4 6 if ($req eq 'GET' or $req eq 'HEAD') { }
5 1 elsif ($req eq 'POST' or $req eq 'PUT') { }
247 2 47 if (not exists $$params{'q'} && $$params{'q'} && looks_like_number($$params{'q'}) or $$params{'q'} > 1 or $$params{'q'} < 0)
280 1 128 if ($full_type eq '*')
367 19 27 unless defined $tunnel_method
370 16 11 if $real_method eq 'POST'
373 4 6 if ($real_method eq 'GET' and $tunnel_method eq 'GET' || $tunnel_method eq 'HEAD')