Branch Coverage

blib/lib/Catalyst/Controller/SimpleCAS.pm
Criterion Covered Total %
branch 0 82 0.0


line true false branch
79 0 0 unless my $checksum = $self->_find_prune_checksum($cas_id)
89 0 0 if (my $type = ref $cnt) { }
90 0 0 if ($type eq 'SCALAR') { }
0 0 elsif (&blessed($cnt) and $cnt->can('getline')) { }
107 0 0 if length $content < 1024 and not $content =~ /\n/ and -f $content
136 0 0 unless my $uri = shift()
141 0 0 unless $checksum =~ /^[0-9a-f]{40}$/
142 0 0 if $self->Store->content_exists($checksum)
152 0 0 unless my $uri = shift()
157 0 0 unless $checksum =~ /^[0-9a-f]{40}$/
158 0 0 scalar @parts == 1 ? :
159 0 0 unless my $Content = $self->Content($checksum, $filename)
172 0 0 if ($filename)
177 0 0 unless ($self->Store->content_exists($checksum))
182 0 0 unless my $type = $self->Store->content_mimetype($checksum)
185 0 0 if ($type eq 'application/vnd.ms-powerpoint' or $type eq 'application/zip')
188 0 0 $ext eq 'pptx' ? :
0 0 $ext eq 'xlsx' ? :
0 0 $ext eq 'docx' ? :
0 0 $ext eq 'xls' ? :
0 0 $ext eq 'doc' ? :
206 0 0 unless my $upload = $c->req->upload('Filedata')
207 0 0 unless my $checksum = $self->Store->add_content_file_mv($upload->tempname)
216 0 0 unless my $upload = $c->req->upload('Filedata')
225 0 0 if ($self->_is_image_resize_available) { }
272 0 0 unless my $checksum = $self->Store->add_content_file($file)
278 0 0 if (defined $maxwidth)
282 0 0 if ($width > $maxwidth)
288 0 0 if (defined $maxheight and $newheight > $maxheight)
294 0 0 unless ($newwidth == $width and $newheight == $height)
300 0 0 if $gd->can($subtype)
327 0 0 unless my $checksum = $self->Store->add_content_file($file)
334 0 0 if (defined $maxwidth)
338 0 0 if ($width > $maxwidth)
344 0 0 if (defined $maxheight and $newheight > $maxheight)
350 0 0 unless ($newwidth == $width and $newheight == $height)
363 0 0 unless my $upload = $c->req->upload('Filedata')
364 0 0 unless my $checksum = $self->Store->add_content_file_mv($upload->tempname)
391 0 0 unless my $upload = $c->req->upload('Filedata')
424 0 0 if (my $vn = $self->_json_view_name) { }
425 0 0 unless my $view = $c->view($vn)