Plack/Handler/Twiggy.pm

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