Branch Coverage

blib/lib/Plack/Middleware/XSendfile.pm
Criterion Covered Total %
branch 7 18 38.8


line true false branch
18 0 1 unless defined $body
20 1 0 if (&Scalar::Util::blessed($body) and $body->can("path"))
23 1 0 if ($type and not $h->exists($type))
24 0 1 if ($type eq 'X-Accel-Redirect') { }
1 0 elsif ($type eq 'X-Sendfile' or $type eq 'X-Lighttpd-Send-File') { }
27 0 0 if $url
32 1 0 if defined $path
48 0 0 if (my $mapping = $env->{'HTTP_X_ACCEL_MAPPING'})
58 1 0 unless $self->variation or $env->{'plack.xsendfile.type'}