blib/lib/ASP4/HandlerRunner.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 3 totaltotal 85.7% 24 / 28 CC 2 SCAR 2.9
CC
2
Cov
95%
run_handler
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/ASP4/Page.pm ↑ Summary blib/lib/ASP4/Mock/Connection.pm »
1  
2 package
3 ASP4::HandlerRunner;
4  
5 12 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use warnings 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8  
9 sub new
10 5145 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11 5145 my ($class, %args) = @_;
12
13 5145 return bless \%args, $class;
14 }# end new()
15  
16  
17 20580 ▶sub context { ASP4::HTTPContext->current }
Subroutine context: called CC=1 SCAR=0.0
Pod undocumented
18  
19  
20 sub run_handler
21 5145 ▶{
Subroutine run_handler: called CC=2 SCAR=7.0
Pod undocumented
22 5145 my ($s, $handler_class, $args) = @_;
23
24 5145 my $handler = $handler_class->new();
25 5145 $handler_class->init_asp_objects( $s->context );
26 5145 $handler_class->before_run( $s->context, $args );
27 5145 ▶ if( ! $s->{did_end} )
Branch: 1 branch
BranchTrueFalseTotal
if (not $s->{"did_end"}) 5145 0 5145
28 {
29 5145 my $res = $handler_class->run( $s->context, $args );
30 5145 $handler_class->after_run( $s->context, $args );
31 5145 return $res;
32 }# end if()
33 }# end run_handler()
34  
35 12 1;# return true:
36  
« blib/lib/ASP4/Page.pm ↑ Summary blib/lib/ASP4/Mock/Connection.pm »