Condition Coverage

blib/lib/Dancer2/Handler/File.pm
Criterion Covered Total %
condition 2 16 12.5


and 3 conditions

line !l l&&!r l&&r condition
83 0 0 0 $prefix and $prefix ne "/"
144 9 0 0 length $volume and length $pub_vol
9 0 0 length $volume and length $pub_vol and $volume ne $pub_vol

or 2 conditions

line l !l condition
108 0 0 $self->mime->for_file($file_path) || 'text/plain'
110 0 0 $self->encoding || 'utf-8'

or 3 conditions

line l !l&&r !l&&!r condition
53 0 0 0 $self->app->config->{'public_dir'} || $ENV{'DANCER_PUBLIC'} || path($self->app->location, 'public')