| 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
| |||||||||||||
| 26 | 0 | ▶ | my $engine_type = lc $self->opt('engine_type') || 'serversimple'; | ||||||||||
|
Condition0%0/2
lc $self->opt('engine_type') || 'serversimple'
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')
| |||||||||||||
| 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__ | ||||||||||||