line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Apache::ASP::CGI::Test; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
8330
|
use Apache::ASP::CGI; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
1983
|
|
4
|
|
|
|
|
|
|
@ISA = qw(Apache::ASP::CGI); |
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
35
|
use strict; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
1499
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub init { |
9
|
11
|
|
|
11
|
0
|
4690
|
my $self = shift->SUPER::init(@_); |
10
|
11
|
|
|
|
|
311
|
$self->OUT(''); |
11
|
11
|
|
|
|
|
127
|
$self; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub print { |
15
|
21
|
|
|
21
|
0
|
39
|
my $self = shift; |
16
|
21
|
50
|
|
|
|
46
|
my $data = join('', map { ref($_) =~ /SCALAR/ ? $$_ : $_; } @_); |
|
21
|
|
|
|
|
430
|
|
17
|
21
|
|
100
|
|
|
1280
|
my $out = $self->OUT || ''; |
18
|
21
|
|
|
|
|
1902
|
$self->OUT($out.$data); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub test_header_out { |
22
|
6
|
|
|
6
|
0
|
85
|
(shift->test_parse_out)[0]; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub test_body_out { |
26
|
13
|
|
|
13
|
0
|
100
|
(shift->test_parse_out)[1]; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub test_parse_out { |
30
|
19
|
|
|
19
|
0
|
33
|
my $self = shift; |
31
|
19
|
|
|
|
|
1312
|
my $out = $self->OUT; |
32
|
19
|
50
|
|
|
|
453
|
if($out =~ /^(.*?)\s*\n\s*\n\s*(.*)$/s) { |
33
|
19
|
|
|
|
|
174
|
my($header, $body) = ($1, $2); |
34
|
|
|
|
|
|
|
} else { |
35
|
0
|
|
|
|
|
|
($out, ''); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |