Branch Coverage: lib/Yukki/Web/Controller/Attachment.pm

# Branch Coverage

File: | lib/Yukki/Web/Controller/Attachment.pm
Coverage: | 29.2%

line | % | coverage | branch
--- | --- | --- | ---
32 | 100 | T | F | if ($action eq 'download') { }
| 50 | T | F | elsif ($action eq 'upload') { }
| 50 | T | F | elsif ($action eq 'view') { }
| 50 | T | F | elsif ($action eq 'rename') { }
| 50 | T | F | elsif ($action eq 'remove') { }
60 | 50 | T | F | if ($final_part =~ s/\.(?<filetype>[a-z0-9]+)$//u)
120 | 0 | T | F | if ($ctx->request->method eq 'POST')
124 | 0 | T | F | if ($new_name =~ m[^$part(?:/$part)*$]u) { }
125 | 0 | T | F | if (my $user = $ctx->session->{'user'})
173 | 0 | T | F | if ($ctx->request->method eq 'POST' and $confirmed)
175 | 0 | T | F | if (my $user = $ctx->session->{'user'})
213 | 0 | T | F | if (my $user = $ctx->session->{'user'})