| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Test::Environment::Plugin::Apache2; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Test::Environment::Plugin::Apache2 - mock Apache2 modules to test mod_perl2 handlers |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use Test::Environment qw{ |
|
10
|
|
|
|
|
|
|
Apache2 |
|
11
|
|
|
|
|
|
|
}; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
This module will just sets: |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
unshift @INC, File::Spec->catdir(File::Basename::dirname(__FILE__), 'Apache'); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
So that the mock Apache2 modules are found and loaded from there. No need to |
|
21
|
|
|
|
|
|
|
have following modules in order to test L handlers. |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
L (L), |
|
24
|
|
|
|
|
|
|
L (L), |
|
25
|
|
|
|
|
|
|
L (L) |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
|
28
|
|
|
|
|
|
|
|
|
29
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
34
|
|
|
30
|
1
|
|
|
1
|
|
5
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
32
|
|
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
our $VERSION = "0.07"; |
|
33
|
|
|
|
|
|
|
|
|
34
|
1
|
|
|
1
|
|
4
|
use File::Basename qw(); |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
18
|
|
|
35
|
1
|
|
|
1
|
|
4
|
use File::Spec qw(); |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
42
|
|
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
unshift @INC, File::Spec->catdir(File::Basename::dirname(__FILE__), 'Apache2'); |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |