Branch Coverage

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


line true false branch
25 0 1 unless defined $body
27 1 0 if (builtin::blessed($body) and $body->can("path"))
30 1 0 if ($type and not $h->exists($type))
31 0 1 if ($type eq 'X-Accel-Redirect') { }
1 0 elsif ($type eq 'X-Sendfile' or $type eq 'X-Lighttpd-Send-File') { }
34 0 0 if $url
39 1 0 if defined $path
55 0 0 if (my $mapping = $env->{'HTTP_X_ACCEL_MAPPING'})
65 1 0 unless $self->variation or $env->{'plack.xsendfile.type'}