blib/lib/REST/Application.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 26 | 34 | 76.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
69 | 116 | 2 | 59 | @_ and @_ % 2 == 0 |
93 | 6 | 0 | 1 | @_ == 1 and ref $_[0] eq 'ARRAY' |
131 | 49 | 1 | 17 | $real_method eq 'GET' and $tunnel_method =~ /^(GET|HEAD)$/ |
line | l | !l | condition |
---|---|---|---|
114 | 58 | 23 | $self->query->request_method || '' |
244 | 23 | 0 | $self->headerType || '' |
285 | 10 | 0 | shift() || '' |
330 | 2 | 0 | $url || '' |
358 | 29 | 23 | $self->getRequestMethod || 'getResource' |
420 | 6 | 0 | ($self->simpleContentNegotiation(@types))[0] || '*/*' |
480 | 6 | 0 | $self->query->http('accept') || '' |
489 | 49 | 5 | $$self{'__lastRegexMatches'} || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
120 | 3 | 46 | 23 | $self->query->http('X-HTTP-Method') || $self->query->url_param('http_method') || $self->query->param('http_method') || $real_method |
144 | 3 | 25 | 1 | $path ||= $self->getMatchText |
390 | 6 | 0 | 0 | $smethod ||= $method |