Plack/Handler/Twiggy/Prefork/Metabolic.pm

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