Branch Coverage

blib/lib/IIIF/ImageAPI.pm
Criterion Covered Total %
branch 0 40 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 ($@)
75 0 0 unless grep {$_ eq $request->{'format'};} @{$self->formats;}
77 0 0 if ($self->canonical)
80 0 0 unless my $canonical = $request->canonical($info->{'width'}, $info->{'height'})
84 0 0 if ("$request" ne $local)
91 0 0 if ($request->is_default and $request->{'format'} eq $file->{'format'})
99 0 0 if (-r $cache_file) { }
106 0 0 unless ($request->canonical($info->{'width'}, $info->{'height'}))
111 0 0 unless $self->{'magick_args'}
112 0 0 if convert(@args)
142 0 0 if $self->rights
143 0 0 if $self->service
155 0 0 if (-r $path)
172 0 0 unless open my $fh, '<:raw', $file