Branch Coverage

blib/lib/Dancer2/Plugin/DoFile.pm
Criterion Covered Total %
branch 20 106 18.8


line true false branch
90 0 0 unless ($pageroot =~ m[/$])
110 0 0 unless ($path)
111 0 0 if (-d $pageroot . "/$path")
112 0 0 if (not $path =~ m[/$]) { }
123 0 0 unless (defined $stash->{'dofiles_executed'})
132 0 0 if ($1)
136 0 0 if ($cururl)
138 0 0 if (defined $dofiles{$pageroot . '/' . $cururl . $m . $ext}) { }
0 0 elsif (-f $pageroot . '/' . $cururl . $m . $ext) { }
140 0 0 if ($plugin->timings) { }
154 0 0 if ($@ or $!)
155 0 0 if (ref $result eq "CODE")
158 0 0 if ($plugin->timings) { }
168 0 0 if (defined $result and ref $result eq 'HASH') { }
0 0 elsif (ref $result eq 'ARRAY') { }
0 0 elsif (not ref $result and $result) { }
170 0 0 if (defined $result->{'url'} and not defined $result->{'done'})
174 0 0 if (defined $result->{'view'} and $result->{'done'}) { }
0 0 elsif (defined $result->{'content'} or $result->{'url'} or $result->{'done'}) { }
201 0 0 if ($stash->{'view'}) { }
223 0 0 unless ($pageroot =~ m[/$])
243 0 0 unless ($path)
244 0 0 if (-d $pageroot . "/$path")
245 0 0 if (not $path =~ m[/$]) { }
258 0 0 if (defined $acceptext->{$fmt})
264 0 0 if ($1)
268 0 0 if ($cururl)
270 0 0 if (defined $dofiles{$pageroot . '/' . $cururl . $m . $acceptext->{$fmt} . $ext}) { }
0 0 elsif (-f $pageroot . '/' . $cururl . $m . $acceptext->{$fmt} . $ext) { }
272 0 0 if ($plugin->timings) { }
286 0 0 if ($@ or $!)
287 0 0 if (ref $result eq "CODE")
290 0 0 if ($plugin->timings) { }
300 0 0 if (defined $result and ref $result eq 'HASH') { }
0 0 elsif (ref $result eq 'ARRAY') { }
0 0 elsif (not ref $result and $result) { }
337 7 0 unless ($pageroot =~ m[/$])
357 0 7 unless ($path)
358 0 7 if (-d $pageroot . "/$path")
359 0 0 if ($path =~ m[/$]) { }
370 7 0 unless (defined $stash->{'dofiles_executed'})
379 13 0 if ($1)
383 42 0 if ($cururl)
385 0 42 if (defined $dofiles{$pageroot . '/' . $cururl . $m . $ext}) { }
10 32 elsif (-f $pageroot . '/' . $cururl . $m . $ext) { }
395 0 10 if ($@ or $!)
396 0 10 if (ref $result eq "CODE")
403 10 32 if (defined $result and ref $result eq 'HASH') { }
0 32 elsif (ref $result eq 'ARRAY') { }
0 32 elsif (not ref $result and $result) { }
404 1 9 if (defined $result->{'url'} and not defined $result->{'done'})
408 6 3 if (defined $result->{'content'} or $result->{'url'} or $result->{'done'}) { }
450 0 3 if (ref $dup->{$k} eq 'HASH' and $src->{$k} and ref $src->{$k} eq 'HASH') { }