| blib/lib/PAGI/Middleware/ContentNegotiation.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 13 | 17 | 76.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 85 | 4 | 1 | 1 | not $preferred and $self->{'strict'} |
| line | l | !l | condition |
|---|---|---|---|
| 65 | 6 | 0 | $config->{'supported_types'} // die("ContentNegotiation requires 'supported_types' option") |
| 68 | 1 | 5 | $config->{'strict'} // 0 |
| 82 | 5 | 1 | $self->_get_header($scope, "accept") // "*/*" |
| 164 | 6 | 0 | $scope->{'headers'} // [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 67 | 1 | 5 | 0 | $config->{'default_type'} // $self->{'supported_types'}[0] |
| 90 | 4 | 1 | 0 | $preferred //= $self->{'default_type'} |