Condition Coverage

blib/lib/PAGI/Response.pm
Criterion Covered Total %
condition 44 51 86.2


and 3 conditions

line !l l&&!r l&&r condition
791 1 0 114 $scope and ref $scope eq "HASH"
809 1 1 19 $code =~ /^\d+$/ and $code >= 100
2 1 18 $code =~ /^\d+$/ and $code >= 100 and $code <= 599
1030 5 2 1 $origin eq "*" and $credentials
1230 11 1 2 builtin::blessed($r) and $r->isa("Future")

or 2 conditions

line l !l condition
808 23 68 $self->{'_status'} // 200
833 56 0 $name // ""
887 4 0 $name // ""
932 0 26 $opts{'charset'} // "utf-8"
950 26 0 $body // ""
976 3 2 $status //= 302
1020 6 2 $opts{'origin'} // "*"
1021 3 5 $opts{'credentials'} // 0
1022 2 6 $opts{'methods'} // ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"]
1023 2 6 $opts{'headers'} // ["Content-Type", "Authorization", "X-Requested-With"]
1024 2 6 $opts{'expose'} // []
1025 2 6 $opts{'max_age'} // 86400
1026 2 6 $opts{'preflight'} // 0
1032 1 0 $opts{'request_origin'} // "*"
1116 3 5 $ext // ""
3 5 $MIME_TYPES{lc($ext // "")} // "application/octet-stream"
1128 5 6 $opts{'offset'} // 0
1210 16 0 $chunk // ""