Condition Coverage

blib/lib/Dancer2/Plugin/DoFile.pm
Criterion Covered Total %
condition 20 80 25.0


and 2 conditions

line l !l condition
78 6 2 $settings->{$_} and $self->$_($settings->{$_})

and 3 conditions

line !l l&&!r l&&r condition
131 0 0 0 not -f $pageroot . "/" . $cururl . $m . $ext and $cururl =~ s[/([^/]*)$][]
168 0 0 0 defined $result and ref $result eq "HASH"
0 0 0 not ref $result and $result
170 0 0 0 defined $result->{'url'} and not defined $result->{'done'}
174 0 0 0 defined $result->{'view'} and $result->{'done'}
263 0 0 0 not -f $pageroot . "/" . $cururl . $m . $acceptext->{$fmt} . $ext and $cururl =~ s[/([^/]*)$][]
300 0 0 0 defined $result and ref $result eq "HASH"
0 0 0 not ref $result and $result
378 10 32 13 not -f $pageroot . "/" . $cururl . $m . $ext and $cururl =~ s[/([^/]*)$][]
403 32 0 10 defined $result and ref $result eq "HASH"
0 32 0 not ref $result and $result
404 7 2 1 defined $result->{'url'} and not defined $result->{'done'}
450 3 0 0 ref $dup->{$k} eq "HASH" and $src->{$k}
0 0 0 ref $dup->{$k} eq "HASH" and $src->{$k} and ref $src->{$k} eq "HASH"

or 2 conditions

line l !l condition
102 0 0 $opts{'stash'} || {}
235 0 0 $opts{'stash'} || {}
349 0 7 $opts{'stash'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
95 0 0 0 $arg || $app->request->path
154 0 0 0 $@ or $!
174 0 0 0 defined $result->{'content'} or $result->{'url'}
0 0 0 defined $result->{'content'} or $result->{'url'} or $result->{'done'}
228 0 0 0 $arg || $app->request->path
286 0 0 0 $@ or $!
342 0 7 0 $arg || $app->request->path
395 0 0 10 $@ or $!
408 4 2 3 defined $result->{'content'} or $result->{'url'}
2 0 3 defined $result->{'content'} or $result->{'url'} or $result->{'done'}