SiteControl/GrantAllRule.pm untested

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