Apache/AuthCookie/Params.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 38 CC 4 SCAR 24.0
CC
4
Cov
0%
_new_instance
20.0
BEGIN
2.0
BEGIN
2.0
CRAP 11.0
1 package Apache::AuthCookie::Params;
2 $Apache::AuthCookie::Params::VERSION = '3.32';
3 # ABSTRACT: AuthCookie Params Driver for mod_perl 1.x
4  
5 use strict;
6 use warnings;
7 use base 'Apache::AuthCookie::Params::Base';
8 use Class::Load qw(try_load_class);
9  
10 sub _new_instance {
11 my ($class, $r) = @_;
12  
13 my $debug = $r->dir_config('AuthCookieDebug') || 0;
14  
15 my $obj;
16  
17 if (try_load_class('Apache::Request')) {
18 $r->server->log_error("params: using Apache::Request") if $debug >= 3;
19  
20 return Apache::Request->new($r);
21 }
22 else {
23 $r->server->log_error("params: using CGI") if $debug >= 3;
24  
25 return $class->SUPER::_new_instance($r);
26 }
27  
28 return;
29 }
30  
31 1;
32  
33 __END__