Branch Coverage

blib/lib/Yukki/Web/Controller/Attachment.pm
Criterion Covered Total %
branch 7 24 29.1


line true false branch
22 1 1 if ($action eq 'download') { }
0 1 elsif ($action eq 'upload') { }
0 1 elsif ($action eq 'view') { }
0 1 elsif ($action eq 'rename') { }
0 1 elsif ($action eq 'remove') { }
42 0 1 if ($final_part =~ s/\.(?<filetype>[a-z0-9]+)$//u)
85 0 0 if ($ctx->request->method eq 'POST')
89 0 0 if ($new_name =~ m[^$part(?:/$part)*$]u) { }
90 0 0 if (my $user = $ctx->session->{'user'})
133 0 0 if ($ctx->request->method eq 'POST' and $confirmed)
135 0 0 if (my $user = $ctx->session->{'user'})
168 0 0 if (my $user = $ctx->session->{'user'})