blib/lib/REST/Utils.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 40 | 42 | 95.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
107 | 6 | 2 | 2 | $CGI::POST_MAX != -1 and $len > $CGI::POST_MAX |
150 | 34 | 83 | 0 | $type eq $target_type || $type eq '*' || $target_type eq '*' and $subtype eq $target_subtype || $subtype eq '*' || $target_subtype eq '*' |
157 | 62 | 9 | 6 | $_ ne 'q' and exists $$params{$_} |
247 | 2 | 1 | 49 | exists $$params{'q'} && $$params{'q'} && looks_like_number($$params{'q'}) |
373 | 1 | 10 | 0 | $real_method eq 'GET' and $tunnel_method eq 'GET' || $tunnel_method eq 'HEAD' |
line | l | !l | condition |
---|---|---|---|
105 | 6 | 4 | $ENV{'CONTENT_LENGTH'} || 0 |
359 | 45 | 1 | $cgi->request_method || '' |
360 | 27 | 19 | uc($cgi->http('X-HTTP-Method-Override') || $cgi->url_param('_method') || $cgi->param('_method') || '') || undef |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
150 | 82 | 1 | 34 | $type eq $target_type || $type eq '*' || $target_type eq '*' |
61 | 1 | 21 | $subtype eq $target_subtype || $subtype eq '*' || $target_subtype eq '*' | |
215 | 3 | 1 | 6 | $req eq 'GET' or $req eq 'HEAD' |
3 | 2 | 1 | $req eq 'POST' or $req eq 'PUT' | |
247 | 80 | 1 | 48 | not exists $$params{'q'} && $$params{'q'} && looks_like_number($$params{'q'}) or $$params{'q'} > 1 |
81 | 1 | 47 | not exists $$params{'q'} && $$params{'q'} && looks_like_number($$params{'q'}) or $$params{'q'} > 1 or $$params{'q'} < 0 | |
373 | 2 | 2 | 6 | $tunnel_method eq 'GET' || $tunnel_method eq 'HEAD' |