| blib/lib/IIIF/ImageAPI.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 0 | 34 | 0.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 78 | 0 | 0 | 0 | not $self->canonical and "$request" ne $local |
| 88 | 0 | 0 | 0 | $self->canonical and "$request" ne $local |
| 95 | 0 | 0 | 0 | $request->is_default and $request->{'format'} eq $file->{'format'} |
| 170 | 0 | 0 | 0 | -f $path and $path =~ /\.([^.]+)$/u |
| line | l | !l | condition |
|---|---|---|---|
| 73 | 0 | 0 | $self->{'preferredFormats'} || [] |
| 191 | 0 | 0 | 'Plack::MIME'->mime_type($file) // 'image' |
| 215 | 0 | 0 | $type // 'application/json' |
| 225 | 0 | 0 | shift() // 400 |
| 226 | 0 | 0 | shift() // ' Invalid IIIF Image API Request : region or size out of bounds ' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 47 | 0 | 0 | 0 | $self->base // $req->base |
| 73 | 0 | 0 | 0 | $request->{'format'} // +($self->{'preferredFormats'} || [])->[0] |
| 0 | 0 | 0 | ($request->{'format'} // +($self->{'preferredFormats'} || [])->[0]) // $file->{'format'} | |
| 100 | 0 | 0 | 0 | $self->cache // $self->cache(tempdir('CLEANUP', 1)) |