Conveyor/App/Webserver.pm

filter: Statementstmt 70.3% 19 / 27 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 70.0% 7 / 10 Podpod 100% 1 / 1 totaltotal 62.7% 27 / 43 CC 3 SCAR 13.7
CC
3
Cov
61%
app_code
12.0
__ANON__
2.0
__ANON__
2.0
CRAP 3.9
« Conveyor/Ticket/Transaction.pm ↑ Summary Conveyor/Stage/TxSelector.pm »
1 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
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  
5 package Data::Conveyor::App::Webserver;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Data::Conveyor::App::Webserver::VERSION = '1.103130';
8 }
9 # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10 1 ▶use Error ':try';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use parent 'Class::Scaffold::App::CommandLine';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use constant GETOPT => qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
13 engine_type|e=s
14 storage_setup
15 sif_web_host=s
16 sif_web_port=s
17 sif_web_access_log=s
18 sif_web_error_log=s
19 sif_web_debug
20 1 );
21  
22 0 ▶sub app_code {
Subroutine app_code: not called CC=3 SCAR=24.8
Pod documented
23 0 my $self = shift;
24 0 $self->SUPER::app_code(@_);
25 0 ▶ $self->delegate->core_storage->test_setup if $self->opt('storage_setup');
Branch: 1 branch
BranchTrueFalseTotal
if $self->opt("storage_setup") 0 0 0
26 0 ▶ my $engine_type = lc $self->opt('engine_type') || 'serversimple';
Condition0%0/2
lc $self->opt('engine_type') || 'serversimple'
l!l
00
MC/DC0%0/1
lc $self->opt('engine_type') || 'serversimple'
lc $self->opt('engine_type')
Truth table0%0/2
A
A= lc $self->opt('engine_type')
Aresult
11
00
27 0 ▶ try {
Subroutine __ANON__: not called CC=1 SCAR=6.9
28 0 $self->delegate->make_obj("sif_http_engine_${engine_type}")->run;
29 }
30 0 ▶ catch Error with {
Subroutine __ANON__: not called CC=1 SCAR=6.9
31 0 my $E = shift;
32 0 die $E;
33  
34 # XXX
35 0 };
36 }
37 1 1;
38  
39  
40 __END__
« Conveyor/Ticket/Transaction.pm ↑ Summary Conveyor/Stage/TxSelector.pm »