Branch Coverage

blib/lib/Catmandu/MediaHaven.pm
Criterion Covered Total %
branch 0 42 0.0


line true false branch
89 0 0 if (defined $query and length $query)
93 0 0 if ($opts{'start'})
97 0 0 if ($opts{'num'})
101 0 0 if (my $sort = $opts{'sort'})
104 0 0 if ($sort =~ /^[+]/) { }
0 0 elsif ($sort =~ /^[-]/) { }
123 0 0 if (not defined $res) { }
0 0 elsif ($res->{'code'}) { }
138 0 0 if ($prop->{'attribute'} eq 'dc_identifier_localid')
145 0 0 if defined $id
160 0 0 unless defined $id
162 0 0 if (my $hit = $self->cache->get($id))
172 0 0 if (exists $res->{'code'})
178 0 0 if ($res->{'mediaDataList'}) { }
195 0 0 unless defined $id and defined $callback
201 0 0 unless $record
205 0 0 unless $mediaObjectId
213 0 0 unless $export_job
223 0 0 if $status =~ /^(failed|cancelled)$/
227 0 0 if ($downloadUrl =~ /^htt/)
245 0 0 if ($response->is_success) { }