| blib/lib/JSONP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 18 | 149 | 12.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 298 | 0 | 0 | 0 | (&reftype($self) // '') eq 'HASH' and $self->{'_is_root_element'} |
| 327 | 0 | 0 | 0 | $contype =~ m[application/json] and scalar keys %params == 1 |
| 377 | 0 | 0 | 0 | $sid and not $isloginsub |
| 398 | 0 | 0 | 0 | not !$session and defined &$map |
| 412 | 0 | 0 | 0 | $self->{'_authenticated'} and $method eq 'POST' || $method eq 'PUT' |
| 491 | 0 | 0 | 0 | $filename and -e -f -r $filename |
| 539 | 0 | 0 | 0 | (&reftype($self) // '') eq 'HASH' and $self->{'_is_root_element'} |
| 560 | 0 | 0 | 0 | (&reftype($self) // '') eq 'HASH' and $self->{'_is_root_element'} |
| 578 | 0 | 0 | 0 | (&reftype($self) // '') eq 'HASH' and $self->{'_is_root_element'} |
| 956 | 0 | 0 | 0 | (&reftype($self) // '') eq 'HASH' && $self->{'_pretty'} |
| 976 | 0 | 0 | 0 | (&reftype($self) // '') eq 'HASH' and $self->{'_is_root_element'} |
| 993 | 0 | 0 | 0 | (&reftype($self) // '') eq 'HASH' and $self->{'_is_root_element'} |
| 1001 | 0 | 0 | 0 | (&reftype($self) // '') eq 'HASH' and $self->{'_is_root_element'} |
| 1074 | 149 | 0 | 0 | $arraynode and not $key =~ /^\d+$/ |
| 1078 | 144 | 5 | 0 | want('RVALUE') and not defined $retval |
| 1079 | 149 | 0 | 0 | want('BOOL') and (&reftype($retval) // '') eq 'SCALAR' |
| 149 | 0 | 0 | want('BOOL') and (&reftype($retval) // '') eq 'SCALAR' and $$retval == $$retval % 2 |
| line | l | !l | condition |
|---|---|---|---|
| 250 | 0 | 0 | &reftype($json) // '' |
| 260 | 0 | 0 | $json // '' |
| 298 | 0 | 0 | &reftype($self) // '' |
| 324 | 0 | 0 | $r->content_type // '' |
| 347 | 0 | 0 | &reftype(scalar $self->params) // '' |
| 355 | 0 | 0 | $1 // '' |
| 359 | 0 | 0 | $self->{'params'}{'req'} // '' |
| 360 | 0 | 0 | $1 // '' |
| 436 | 0 | 0 | $self->{'_status_code'} || 200 |
| 467 | 0 | 0 | $self->{'_sendfile'} // '' |
| 482 | 0 | 0 | $self->{'_status_code'} || 200 |
| 503 | 0 | 0 | &reftype($_[1]) // '' |
| 517 | 0 | 0 | &reftype($_[1]{$_}) // '' |
| 0 | 0 | &reftype($_[2]{$_}) // '' | |
| 539 | 0 | 0 | &reftype($self) // '' |
| 560 | 0 | 0 | &reftype($self) // '' |
| 578 | 0 | 0 | &reftype($self) // '' |
| 601 | 0 | 0 | &reftype($self) // '' |
| 622 | 0 | 0 | &reftype($self) // '' |
| 636 | 0 | 0 | &reftype($self) // '' |
| 650 | 0 | 0 | &reftype($self) // '' |
| 664 | 0 | 0 | &reftype($self) // '' |
| 690 | 0 | 0 | &reftype($self) // '' |
| 770 | 2 | 0 | &reftype($self) // '' |
| 772 | 1 | 1 | &reftype($message) // '' |
| 793 | 0 | 0 | &reftype($self) // '' |
| 797 | 0 | 0 | $json // '' |
| 830 | 0 | 0 | &reftype($self) // '' |
| 834 | 0 | 0 | $json // '' |
| 865 | 0 | 0 | &reftype($self) // '' |
| 904 | 0 | 0 | &reftype($self) // '' |
| 976 | 0 | 0 | &reftype($self) // '' |
| 993 | 0 | 0 | &reftype($self) // '' |
| 1001 | 0 | 0 | &reftype($self) // '' |
| 1042 | 0 | 0 | &reftype($self) // '' |
| 1073 | 149 | 0 | &reftype($_[0]) // '' |
| 1079 | 0 | 0 | &reftype($retval) // '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 251 | 0 | 0 | 0 | $type eq 'HASH' or $type eq 'ARRAY' |
| 398 | 0 | 0 | 0 | not !$session and defined &$map or $isloginsub |
| 412 | 0 | 0 | 0 | $method eq 'POST' || $method eq 'PUT' |
| 517 | 0 | 0 | 0 | (&reftype($_[1]{$_}) // '') ne 'HASH' or (&reftype($_[2]{$_}) // '') ne 'HASH' |
| 921 | 0 | 0 | 0 | $reftype eq 'HASH' or $reftype eq 'ARRAY' |
| 1027 | 17 | 8 | 65 | $refnode eq 'HASH' or $refnode eq 'ARRAY' |
| 1077 | 5 | 129 | 15 | $_[1] // $retval |
| 134 | 6 | 9 | ($_[1] // $retval) // $miss |