Branch Coverage

blib/lib/Dancer2/Plugin/DoFile.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
49 7 0 unless ($pageroot =~ m[/$])
71 0 7 unless ($path)
72 0 7 if (-d $pageroot . "/$path")
73 0 0 if ($path =~ m[/$]) { }
92 5 0 if ($1)
96 18 0 if ($cururl)
98 0 18 if (defined $dofiles{$pageroot . '/' . $cururl . $m . $ext}) { }
10 8 elsif (-f $pageroot . '/' . $cururl . $m . $ext) { }
105 0 10 if ($@ or $!)
106 0 10 if (ref $result eq "CODE")
112 10 8 if (defined $result and ref $result eq 'HASH') { }
0 8 elsif (ref $result eq 'ARRAY') { }
0 8 elsif (not ref $result and $result) { }
113 1 9 if (defined $result->{'url'} and not defined $result->{'done'})
117 6 3 if (defined $result->{'content'} or $result->{'url'} or $result->{'done'}) { }