line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#! perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Html.pm -- HTML backend for Reporters. |
4
|
|
|
|
|
|
|
# Author : Johan Vromans |
5
|
|
|
|
|
|
|
# Created On : Thu Dec 29 15:46:47 2005 |
6
|
|
|
|
|
|
|
# Last Modified By: Johan Vromans |
7
|
|
|
|
|
|
|
# Last Modified On: Sat Jun 19 00:39:34 2010 |
8
|
|
|
|
|
|
|
# Update Count : 70 |
9
|
|
|
|
|
|
|
# Status : Unknown, Use with caution! |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package main; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $dbh; |
14
|
|
|
|
|
|
|
our $cfg; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
package EB::Report::Reporter::Html; |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
19
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
18
|
|
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
|
2
|
use EB; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
148
|
|
22
|
1
|
|
|
1
|
|
4
|
use EB::Format qw(datefmt_full); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
81
|
|
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
9
|
use base qw(EB::Report::Reporter); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
867
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
################ API ################ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my $html; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub start { |
31
|
0
|
|
|
0
|
0
|
|
my ($self, @args) = @_; |
32
|
0
|
|
|
|
|
|
eval { |
33
|
0
|
|
|
|
|
|
require HTML::Entities; |
34
|
|
|
|
|
|
|
}; |
35
|
0
|
0
|
|
|
|
|
$html = $@ ? \&__html : \&_html; |
36
|
0
|
|
|
|
|
|
$self->SUPER::start(@args); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub finish { |
40
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
41
|
0
|
|
|
|
|
|
$self->SUPER::finish(); |
42
|
0
|
|
|
|
|
|
print {$self->{fh}} (" |
\n");