| blib/lib/Plack/Middleware/JSON.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 10 | 17 | 58.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 34 | 0 | 1 | 3 | $json_key and $$env{'QUERY_STRING'} =~ /(?:^|&)($json_key)=([^&]+)/ |
| 40 | 0 | 4 | 0 | defined $self->callback_key and $1 |
| 1 | 2 | 1 | defined $self->callback_key and $1 and $1 eq $self->callback_key |
| line | l | !l | condition |
|---|---|---|---|
| 33 | 4 | 0 | $h->get('Content-Type') || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 34 | 3 | 1 | 0 | $json_key and $$env{'QUERY_STRING'} =~ /(?:^|&)($json_key)=([^&]+)/ or $content_type =~ m[/(?:json|javascript)] |
| 36 | 0 | 4 | 0 | ref $$res[2][0] eq 'ARRAY' or ref $$res[2][0] eq 'HASH' |