Condition Coverage

blib/lib/PAGI/Response.pm
Criterion Covered Total %
condition 43 50 86.0


and 3 conditions

line !l l&&!r l&&r condition
710 1 0 86 $scope and ref $scope eq "HASH"
728 1 1 14 $code =~ /^\d+$/ and $code >= 100
2 1 13 $code =~ /^\d+$/ and $code >= 100 and $code <= 599
963 5 2 1 $origin eq "*" and $credentials

or 2 conditions

line l !l condition
727 17 45 $self->{'_status'} // 200
752 52 0 $name // ""
806 4 0 $name // ""
830 8 2 $self->{'scope'}{'pagi.stash'} //= {}
865 0 17 $opts{'charset'} // "utf-8"
883 17 0 $body // ""
909 3 2 $status //= 302
953 6 2 $opts{'origin'} // "*"
954 3 5 $opts{'credentials'} // 0
955 2 6 $opts{'methods'} // ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"]
956 2 6 $opts{'headers'} // ["Content-Type", "Authorization", "X-Requested-With"]
957 2 6 $opts{'expose'} // []
958 2 6 $opts{'max_age'} // 86400
959 2 6 $opts{'preflight'} // 0
965 1 0 $opts{'request_origin'} // "*"
1035 3 5 $ext // ""
3 5 $MIME_TYPES{lc($ext // "")} // "application/octet-stream"
1047 5 6 $opts{'offset'} // 0
1125 7 0 $chunk // ""