blib/lib/CGI/OptimalQuery/CustomOutput.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 32 CC 2 SCAR 11.5
CC
2
Cov
0%
output
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.1
1 package CGI::OptimalQuery::CustomOutput;
2  
3 use strict;
4 use warnings;
5 no warnings qw( uninitialized );
6 use base 'CGI::OptimalQuery::Base';
7 use CGI();
8  
9 our $custom_output_handler;
10  
11 sub output {
12 my $o = shift;
13 my $codeRef = $$o{custom_output_handler} || $custom_output_handler;
14 $codeRef->($o) if $codeRef;
15 $o->finish();
16 }
17  
18 1;