Branch Coverage

blib/lib/Dancer2/Plugin/DoFile.pm
Criterion Covered Total %
branch 19 96 19.7


line true false branch
85 0 0 unless ($pageroot =~ m[/$])
107 0 0 unless ($path)
108 0 0 if (-d $pageroot . "/$path")
109 0 0 if (not $path =~ m[/$]) { }
120 0 0 unless (defined $stash->{'dofiles_executed'})
129 0 0 if ($1)
133 0 0 if ($cururl)
135 0 0 if (defined $dofiles{$pageroot . '/' . $cururl . $m . $ext}) { }
0 0 elsif (-f $pageroot . '/' . $cururl . $m . $ext) { }
145 0 0 if ($@ or $!)
146 0 0 if (ref $result eq "CODE")
156 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) { }
158 0 0 if (defined $result->{'url'} and not defined $result->{'done'})
162 0 0 if (defined $result->{'view'} and $result->{'done'}) { }
0 0 elsif (defined $result->{'content'} or $result->{'url'} or $result->{'done'}) { }
189 0 0 if ($stash->{'view'}) { }
211 0 0 unless ($pageroot =~ m[/$])
233 0 0 unless ($path)
234 0 0 if (-d $pageroot . "/$path")
235 0 0 if (not $path =~ m[/$]) { }
248 0 0 if (defined $acceptext->{$fmt})
254 0 0 if ($1)
258 0 0 if ($cururl)
260 0 0 if (defined $dofiles{$pageroot . '/' . $cururl . $m . $acceptext->{$fmt} . $ext}) { }
0 0 elsif (-f $pageroot . '/' . $cururl . $m . $acceptext->{$fmt} . $ext) { }
270 0 0 if ($@ or $!)
271 0 0 if (ref $result eq "CODE")
281 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) { }
318 7 0 unless ($pageroot =~ m[/$])
340 0 7 unless ($path)
341 0 7 if (-d $pageroot . "/$path")
342 0 0 if ($path =~ m[/$]) { }
353 7 0 unless (defined $stash->{'dofiles_executed'})
362 13 0 if ($1)
366 42 0 if ($cururl)
368 0 42 if (defined $dofiles{$pageroot . '/' . $cururl . $m . $ext}) { }
10 32 elsif (-f $pageroot . '/' . $cururl . $m . $ext) { }
378 0 10 if ($@ or $!)
379 0 10 if (ref $result eq "CODE")
386 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) { }
387 1 9 if (defined $result->{'url'} and not defined $result->{'done'})
391 6 3 if (defined $result->{'content'} or $result->{'url'} or $result->{'done'}) { }