Plack/Handler/Twiggy/Prefork.pm

filter: Statementstmt 100% 15 / 15 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 88.0% 22 / 25 CC 3 SCAR 7.0
CC
3
Cov
95%
run
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Twiggy/Prefork/Server.pm ↑ Summary Twiggy/Prefork.pm »
1 package Plack::Handler::Twiggy::Prefork;
2  
3 71 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 71 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 71 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
7 71 my $class = shift;
8 71 bless {@_}, $class;
9 }
10  
11 71 ▶sub run {
Subroutine run: called CC=3 SCAR=11.0
Pod undocumented
12 71 my ($self, $app) = @_;
13  
14 my $class = $ENV{SERVER_STARTER_PORT} ?
15 71 ▶ 'Twiggy::Prefork::Server::SS' : 'Twiggy::Prefork::Server';
Branch: 1 branch
BranchTrueFalseTotal
$ENV{'SERVER_STARTER_PORT'} ? : 11 60 71
16 71 eval "require $class";
17 71 ▶ die if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 71 71
18  
19 71 $class->new(%{$self})->run($app);
20 }
21
22  
23 71 1;
24  
25 __END__
« Twiggy/Prefork/Server.pm ↑ Summary Twiggy/Prefork.pm »