File Coverage

lib/Kwiki.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package Kwiki;
2 5     5   218445 use Spoon 0.22 -Base;
  0            
  0            
3             our $VERSION = '0.39';
4              
5             const config_class => 'Kwiki::Config';
6              
7             sub process {
8             my $hub = $self->load_hub(@_);
9             $hub->registry->load;
10             $hub->add_hooks;
11             $hub->pre_process;
12             my $html = $hub->process;
13             if (defined $html) {
14             $hub->headers->print;
15             $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             ? Apache->request->print($html)
20             : print $html;
21             }
22             close STDOUT unless $self->using_debug;
23             $hub->post_process;
24             return $self;
25             }
26              
27             __DATA__