SiteControl/Rule.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 43 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::Rule;
2  
3 use 5.008;
4 use strict;
5 use warnings;
6 use Carp;
7  
8 sub new {
9 my $proto = shift;
10 my $class = ref($proto) || $proto;
11 my $this = { };
12 bless ($this, $class);
13 return $this;
14 }
15  
16 sub grants($$$$)
17 {
18 my $this = shift;
19 my $user = shift;
20 my $action = shift;
21 my $resource = shift;
22  
23 return 0;
24 }
25  
26 sub denies($$$$)
27 {
28 my $this = shift;
29 my $user = shift;
30 my $action = shift;
31 my $resource = shift;
32  
33 return "Abstract rule denies everything. Do not use.";
34 }
35  
36 1;
37  
38 __END__