Condition Coverage

blib/lib/IIIF/Request.pm
Criterion Covered Total %
condition 55 64 85.9


and 3 conditions

line !l l&&!r l&&r condition
33 2 51 33 @parts and $parts[0] =~ /^$REGION$/u
43 0 0 8 $region_pct->[2] && $region_pct->[3]
47 32 17 36 @parts and $parts[0] =~ /^$SIZE$/u
66 65 9 9 @parts and $parts[0] =~ /^$ROTATION$/u
75 73 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)
151 2 6 0 not $upscale and $h > $height || $w > $width
153 1 2 4 $w and $h

or 2 conditions

line l !l condition
23 85 1 shift() // ''
84 32 48 $region // 'full'
34 46 $size // 'max'
9 71 $rotation // '0'
7 73 $quality // 'default'

or 3 conditions

line l !l&&r !l&&!r condition
43 0 1 7 not $region_pct->[2] && $region_pct->[3] or grep {$_ > 100;} @$region_pct
51 5 2 16 $5 // $6
2 16 0 ($5 // $6) // $8
5 2 29 $5 // $6
2 16 13 ($5 // $6) // $8
59 1 1 8 $size_pct == 0 or $size_pct > 100
77 1 0 6 $4 // $5
150 7 1 0 $w or $h
151 1 0 5 $h > $height || $w > $width