| blib/lib/IIIF/Request.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 64 | 73 | 87.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 33 | 2 | 61 | 33 | @parts and $parts[0] =~ /^$REGION$/u |
| 43 | 0 | 0 | 8 | $region_pct->[2] && $region_pct->[3] |
| 47 | 32 | 17 | 46 | @parts and $parts[0] =~ /^$SIZE$/u |
| 66 | 75 | 9 | 9 | @parts and $parts[0] =~ /^$ROTATION$/u |
| 75 | 83 | 3 | 7 | @parts and $parts[0] =~ /^(($QUALITY)([.]($FORMAT))?|[.]($FORMAT))$/u |
| 124 | 4 | 0 | 1 | $x >= $width and $y >= $height |
| 136 | 2 | 1 | 2 | pct2px($self->{'size_pct'}, $width) and pct2px($self->{'size_pct'}, $height) |
| 148 | 22 | 1 | 2 | $size eq '^max' and $maxHeight |
| 164 | 5 | 8 | 0 | not $upscale and $h > $height || $w > $width |
| 166 | 1 | 3 | 7 | $w and $h |
| line | l | !l | condition |
|---|---|---|---|
| 23 | 95 | 1 | shift() // '' |
| 84 | 32 | 58 | $region // 'full' |
| 44 | 46 | $size // 'max' | |
| 9 | 81 | $rotation // '0' | |
| 7 | 83 | $quality // 'default' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 43 | 0 | 1 | 7 | not $region_pct->[2] && $region_pct->[3] or grep {$_ > 100;} @$region_pct |
| 51 | 6 | 3 | 19 | $5 // $6 |
| 3 | 19 | 0 | ($5 // $6) // $8 | |
| 6 | 3 | 37 | $5 // $6 | |
| 3 | 19 | 18 | ($5 // $6) // $8 | |
| 59 | 1 | 1 | 8 | $size_pct == 0 or $size_pct > 100 |
| 77 | 1 | 0 | 6 | $4 // $5 |
| 146 | 2 | 5 | 18 | $max{'maxWidth'} || $maxHeight |
| 163 | 11 | 2 | 0 | $w or $h |
| 164 | 2 | 0 | 6 | $h > $height || $w > $width |
| 194 | 1 | 2 | 2 | $width > $maxWidth or $height > $maxHeight |