blib/lib/JSONP.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 163 | 17.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
28 | 4 | 6 | 0 | defined $reftype_other and $reftype_self ne $reftype_other |
39 | 6 | 0 | 2 | &blessed($other) and $other->isa("JSONP") |
362 | 0 | 0 | 0 | (&reftype($self) // "") eq "HASH" and $self->{'_is_root_element'} |
392 | 0 | 0 | 0 | $contype =~ m[application/json] and scalar keys %params == 1 |
440 | 0 | 0 | 0 | $sid and not $isloginsub |
461 | 0 | 0 | 0 | not !$session and defined &$map |
475 | 0 | 0 | 0 | $self->{'_authenticated'} and $method eq 'POST' || $method eq 'PUT' |
568 | 0 | 0 | 0 | $filename and -e -f -r $filename |
616 | 0 | 0 | 0 | (&reftype($self) // "") eq "HASH" and $self->{'_is_root_element'} |
637 | 0 | 0 | 0 | (&reftype($self) // "") eq "HASH" and $self->{'_is_root_element'} |
661 | 0 | 0 | 0 | (&reftype($self) // "") eq "HASH" and $self->{'_is_root_element'} |
679 | 0 | 0 | 0 | (&reftype($self) // "") eq "HASH" and $self->{'_is_root_element'} |
1067 | 2 | 8 | 0 | (&reftype($self) // '') eq 'HASH' && $self->{'_pretty'} |
1089 | 0 | 0 | 0 | (&reftype($self) // "") eq "HASH" and $self->{'_is_root_element'} |
1106 | 0 | 0 | 0 | (&reftype($self) // "") eq "HASH" and $self->{'_is_root_element'} |
1114 | 0 | 0 | 0 | (&reftype($self) // "") eq "HASH" and $self->{'_is_root_element'} |
1187 | 149 | 0 | 0 | $arraynode and not $key =~ /^\d+$/ |
1191 | 144 | 5 | 0 | want("RVALUE") and not defined $retval |
1192 | 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 |
---|---|---|---|
312 | 3 | 0 | &reftype($json) // "" |
362 | 0 | 0 | &reftype($self) // "" |
389 | 0 | 0 | $r->content_type // "" |
412 | 0 | 0 | &reftype(scalar $self->params) // "" |
420 | 0 | 0 | $1 // "" |
424 | 0 | 0 | $self->{'params'}{'req'} // "" |
425 | 0 | 0 | $1 // "" |
499 | 0 | 0 | $self->{'_status_code'} || 200 |
542 | 0 | 0 | $self->{'_sendfile'} // "" |
557 | 0 | 0 | $self->{'_status_code'} || 200 |
580 | 0 | 0 | &reftype($_[1]) // "" |
594 | 0 | 0 | &reftype($_[1]{$_}) // "" |
0 | 0 | &reftype($_[2]{$_}) // "" | |
616 | 0 | 0 | &reftype($self) // "" |
637 | 0 | 0 | &reftype($self) // "" |
640 | 0 | 0 | $blob // "" |
641 | 0 | 0 | $attachmentName || 'file' |
661 | 0 | 0 | &reftype($self) // "" |
679 | 0 | 0 | &reftype($self) // "" |
702 | 0 | 0 | &reftype($self) // "" |
723 | 0 | 0 | &reftype($self) // "" |
737 | 0 | 0 | &reftype($self) // "" |
751 | 0 | 0 | &reftype($self) // "" |
765 | 0 | 0 | &reftype($self) // "" |
791 | 0 | 0 | &reftype($self) // "" |
871 | 2 | 0 | &reftype($self) // "" |
873 | 1 | 1 | &reftype($message) // "" |
896 | 0 | 0 | &reftype($self) // "" |
933 | 0 | 0 | &reftype($self) // "" |
968 | 0 | 0 | &reftype($self) // "" |
1007 | 0 | 0 | &reftype($self) // "" |
1065 | 10 | 0 | $prettyoverride //= 0 |
1089 | 0 | 0 | &reftype($self) // "" |
1106 | 0 | 0 | &reftype($self) // "" |
1114 | 0 | 0 | &reftype($self) // "" |
1155 | 10 | 0 | &reftype($self) // "" |
1186 | 149 | 0 | &reftype($_[0]) // "" |
1192 | 0 | 0 | &reftype($retval) // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
313 | 3 | 0 | 0 | $type eq "HASH" or $type eq "ARRAY" |
461 | 0 | 0 | 0 | not !$session and defined &$map or $isloginsub |
475 | 0 | 0 | 0 | $method eq 'POST' || $method eq 'PUT' |
594 | 0 | 0 | 0 | (&reftype($_[1]{$_}) // "") ne "HASH" or (&reftype($_[2]{$_}) // "") ne "HASH" |
1024 | 0 | 0 | 0 | $reftype eq "HASH" or $reftype eq "ARRAY" |
1068 | 0 | 0 | 10 | $pretty ||= $prettyoverride |
1140 | 17 | 8 | 65 | $refnode eq "HASH" or $refnode eq "ARRAY" |
1190 | 5 | 129 | 15 | $_[1] // $retval |
134 | 6 | 9 | ($_[1] // $retval) // $miss |