Branch Coverage

blib/lib/IIIF/ImageAPI.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
34 0 0 unless $self->images
35 0 0 unless $self->formats
44 0 0 if ($req->path_info =~ qr"^/([^/]+)/?(.*)$"u)
46 0 0 if (my $file = $self->file($identifier))
59 0 0 if ($local eq '') { }
0 0 elsif ($local eq 'info.json') { }
68 0 0 if ($@)
76 0 0 unless grep {$_ eq $request->{'format'};} @{$self->formats;}
78 0 0 if (not $self->canonical and "$request" ne $local)
83 0 0 unless my $norm = $request->canonical($info->{'width'}, $info->{'height'}, %$self)
88 0 0 if ($self->canonical and "$request" ne $local)
95 0 0 if ($request->is_default and $request->{'format'} eq $file->{'format'})
104 0 0 if (-r $cache_file) { }
109 0 0 unless $self->{'magick_args'}
110 0 0 if convert(@args)
139 0 0 if ($self->preferredFormats)
145 0 0 if $self->rights
146 0 0 if $self->service
158 0 0 if -r $file
165 0 0 ref $self->images eq 'CODE' ? :
170 0 0 if (-f $path and $path =~ /\.([^.]+)$/u)
171 0 0 if (grep {$1 eq $_;} @{$self->formats;})
188 0 0 unless open my $fh, '<:raw', $file