lib/Kwiki.pm

filter: Statementstmt 48.0% 12 / 25 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 41.6% 15 / 36 CC 4 SCAR 24.7
CC
4
Cov
39%
process
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.9
« lib/Kwiki/Registry.pm ↑ Summary lib/Kwiki/Users.pm »
1 package Kwiki;
2 7 ▶use Spoon 0.22 -Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 ▶our $VERSION = '0.39';
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 7 const config_class => 'Kwiki::Config';
6  
7 0 ▶sub process {
Subroutine process: not called CC=4 SCAR=30.0
Pod undocumented
8 0 my $hub = $self->load_hub(@_);
9 0 $hub->registry->load;
10 0 $hub->add_hooks;
11 0 $hub->pre_process;
12 0 my $html = $hub->process;
13 0 ▶ if (defined $html) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $html) 0 0 0
14 0 $hub->headers->print;
15 0 $self->utf8_encode($html);
16 # With mod_perl < 1.27 and Perl >= 5.8.0, STDOUT does not get
17 # tied to Apache.pm properly.
18 exists $ENV{MOD_PERL}
19 0 ▶ ? Apache->request->print($html)
Branch: 1 branch
BranchTrueFalseTotal
exists $ENV{'MOD_PERL'} ? : 0 0 0
20 : print $html;
21 }
22 0 ▶ close STDOUT unless $self->using_debug;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->using_debug 0 0 0
23 0 $hub->post_process;
24 0 return $self;
25 }
26  
27 7 __DATA__
« lib/Kwiki/Registry.pm ↑ Summary lib/Kwiki/Users.pm »