Plack/Handler/Gepok.pm

filter: Statementstmt 56.5% 13 / 23 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 40.4% 17 / 42 CC 5 SCAR 27.5
CC
5
Cov
42%
new
30.0
run
2.0
BEGIN
1.0
CRAP 15.6
« Gepok.pm ↑ Summary
1 package Plack::Handler::Gepok;
2  
3 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Gepok;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our $VERSION = '0.292'; # VERSION
10  
11 0 ▶sub new {
Subroutine new: not called CC=5 SCAR=34.0
Pod undocumented
12 0 my $class = shift;
13 0 my $self = bless { @_ }, $class;
14  
15 0 ▶ $self->{daemonize} //= 0;
Condition0%0/2
$self->{"daemonize"} //= 0
l!l
00
MC/DC0%0/1
$self->{"daemonize"} //= 0
$self->{"daemonize"}
Truth table0%0/2
A
A= $self->{"daemonize"}
Aresult
11
00
16  
17 # translate different option names
18 0 ▶ if ($self->{port}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"port"}) 0 0 0
19 0 ▶ $self->{http_ports} //= [($self->{host} // "") . ":" . $self->{port}];
Condition0%0/4
$self->{"http_ports"} //= [($self->{"host"} // "") . ':' . $self->{"port"}]
l!l
00
$self->{"host"} // ""
l!l
00
MC/DC0%0/1
$self->{"http_ports"} //= [($self->{"host"} // "") . ':' . $self->{"port"}]
$self->{"http_ports"}
MC/DC0%0/1
$self->{"host"} // ""
$self->{"host"}
Truth table0%0/2
A
A= $self->{"http_ports"}
Aresult
11
00
Truth table0%0/2
A
A= $self->{"host"}
Aresult
11
00
20 0 delete $self->{port};
21 0 delete $self->{host};
22 }
23 0 $self;
24 }
25  
26 0 ▶sub run {
Subroutine run: not called CC=1 SCAR=6.9
Pod undocumented
27 0 my($self, $app) = @_;
28 0 Gepok->new(%$self)->run($app);
29 }
30  
31 1 1;
32 # ABSTRACT: Plack adapter for Gepok
33  
34 __END__
« Gepok.pm ↑ Summary