SiteControl/GrantAllRule.pm untested

filter: Statementstmt 0.0% 0 / 37 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 55 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
grants
2.0
denies
2.0
CRAP 2.0
1 package Apache2::SiteControl::GrantAllRule;
2  
3 use 5.008;
4 use strict;
5 use warnings;
6 use Carp;
7 use Carp::Assert;
8 use Apache2::SiteControl::Rule;
9  
10 use base qw(Apache2::SiteControl::Rule);
11  
12 sub new {
13 my $proto = shift;
14 my $class = ref($proto) || $proto;
15 my $this = { };
16 bless ($this, $class);
17 return $this;
18 }
19  
20 sub grants($$$$)
21 {
22 my $this = shift;
23 my $user = shift;
24 my $action = shift;
25 my $resource = shift;
26  
27 return "Default is to allow";
28 }
29  
30 sub denies($$$$)
31 {
32 my $this = shift;
33 my $user = shift;
34 my $action = shift;
35 my $resource = shift;
36  
37 return 0;
38 }
39  
40 1;
41  
42 __END__