| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Report::Generator::Render; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
|
1
|
|
|
|
|
27
|
|
|
|
1
|
|
|
|
|
42
|
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
38
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Carp qw(croak); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
175
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Report::Generator::Render - base class for rendering reports |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=cut |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
This module is not intended to be used directly. |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
C provides an abstract base class for rendering |
|
23
|
|
|
|
|
|
|
reports in L. |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head2 new |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=cut |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub new |
|
32
|
|
|
|
|
|
|
{ |
|
33
|
1
|
|
|
1
|
1
|
4
|
my ( $proto, $attr ) = @_; |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# XXX some checks might be required here ... |
|
36
|
|
|
|
|
|
|
|
|
37
|
1
|
|
|
|
|
3
|
my $self = bless( $attr, $proto ); |
|
38
|
|
|
|
|
|
|
|
|
39
|
1
|
|
|
|
|
4
|
return $self; |
|
40
|
|
|
|
|
|
|
} |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 render |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Routine called to render the output. Must return a true value on success |
|
45
|
|
|
|
|
|
|
or set C<< $self->{error} >> otherwise. |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
|
48
|
|
|
|
|
|
|
|
|
49
|
0
|
|
|
0
|
1
|
|
sub render { croak "Abstract " . __PACKAGE__ . "::render called"; } |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 AUTHOR |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Jens Rehsack, C<< >> |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 BUGS |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Please report any bugs or feature requests to |
|
58
|
|
|
|
|
|
|
C, or through the web interface at |
|
59
|
|
|
|
|
|
|
L. I |
|
60
|
|
|
|
|
|
|
will be notified, and then you'll automatically be notified of progress |
|
61
|
|
|
|
|
|
|
on your bug as I make changes. |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 SUPPORT |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
perldoc Report::Generator::Render |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
You can also look for information at: |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=over 4 |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
L |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
L |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=item * CPAN Ratings |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
L |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=item * Search CPAN |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
L |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=back |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Copyright 2010 Jens Rehsack. |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
|
99
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
|
100
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=cut |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
1; # End of Report::Controller |