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

# Branch Coverage

File: | lib/Yukki/Web/Controller/Page.pm
Coverage: | 8.7%

line | % | coverage | branch
--- | --- | --- | ---
32 | 50 | T | F | if ($action eq 'view') { }
| 0 | T | F | elsif ($action eq 'edit') { }
| 0 | T | F | elsif ($action eq 'history') { }
| 0 | T | F | elsif ($action eq 'diff') { }
| 0 | T | F | elsif ($action eq 'preview') { }
| 0 | T | F | elsif ($action eq 'attach') { }
| 0 | T | F | elsif ($action eq 'rename') { }
| 0 | T | F | elsif ($action eq 'remove') { }
59 | 50 | T | F | unless (defined $path)
84 | 50 | T | F | if ($final_part =~ s/\.(?<filetype>[a-z0-9]+)$//u)
109 | 50 | T | F | if (not $page->exists) { }
149 | 0 | T | F | if ($ctx->request->method eq 'POST')
154 | 0 | T | F | if (my $user = $ctx->session->{'user'})
199 | 0 | T | F | if ($ctx->request->method eq 'POST')
203 | 0 | T | F | if ($new_name =~ m[^$part(?:/$part)*$]u) { }
205 | 0 | T | F | if (my $user = $ctx->session->{'user'})
251 | 0 | T | F | if ($ctx->request->method eq 'POST' and $confirmed)
253 | 0 | T | F | if ($return_to->full_path ne $page->full_path) { }
254 | 0 | T | F | if (my $user = $ctx->session->{'user'})
333 | 0 | T | F | if ($chunk->[0] eq ' ') { }
| 0 | T | F | elsif ($chunk->[0] eq '+') { }
| 0 | T | F | elsif ($chunk->[0] eq '-') { }
356 | 0 | T | F | if ("$_" =~ /usage: git diff/u)