blib/lib/Plack/App/PSGIBin.pm

filter: Statementstmt 95.0% 19 / 20 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 2 totaltotal 75.7% 25 / 33 CC 2 SCAR 3.7
CC
2
Cov
87%
serve_path
2.0
allow_path_info
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Plack/Test/MockHTTP.pm ↑ Summary blib/lib/Plack/Test/Suite.pm »
1 package Plack::App::PSGIBin;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use parent qw/Plack::App::File/;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Plack::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub allow_path_info { 1 }
Subroutine allow_path_info: not called CC=1 SCAR=6.9
Pod undocumented
8  
9 1 ▶sub serve_path {
Subroutine serve_path: called CC=2 SCAR=7.1
Pod undocumented
10 1 my($self, $env, $file) = @_;
11  
12 1 local @{$env}{qw(SCRIPT_NAME PATH_INFO)} = @{$env}{qw( plack.file.SCRIPT_NAME plack.file.PATH_INFO )};
13  
14 1 ▶ my $app = $self->{_compiled}->{$file} ||= Plack::Util::load_psgi($file);
Condition33%1/3
$self->{"_compiled"}{$file} ||= Plack::Util::load_psgi($file)
l!l&&r!l&&!r
010
MC/DC0%0/2
$self->{"_compiled"}{$file} ||= Plack::Util::load_psgi($file)
$self->{"_compiled"}{$file} Plack::Util::load_psgi($file)
Truth table33%1/3
A ||= B
A= $self->{"_compiled"}{$file}B= Plack::Util::load_psgi($file)
ABresult
1X1
011
000
15 1 $app->($env);
16 }
17  
18 1 1;
19  
20 __END__
« blib/lib/Plack/Test/MockHTTP.pm ↑ Summary blib/lib/Plack/Test/Suite.pm »