line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
19
|
|
|
19
|
|
216
|
use strict; |
|
19
|
|
|
|
|
36
|
|
|
19
|
|
|
|
|
869
|
|
2
|
19
|
|
|
19
|
|
110
|
use warnings FATAL => 'all'; |
|
19
|
|
|
|
|
37
|
|
|
19
|
|
|
|
|
11090
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package HTML::Tested::List::Renderer; |
5
|
|
|
|
|
|
|
|
6
|
22
|
|
|
22
|
0
|
67
|
sub init {} |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub render { |
9
|
36
|
|
|
36
|
0
|
68
|
my ($self, $the_list, $caller, $stash, $id) = @_; |
10
|
36
|
|
|
|
|
114
|
my $n = $the_list->name; |
11
|
36
|
|
|
|
|
206
|
my $rows = $caller->$n; |
12
|
36
|
|
|
|
|
737
|
my @res; |
13
|
36
|
|
|
|
|
57
|
my $i = 1; |
14
|
36
|
|
|
|
|
92
|
for my $row (@$rows) { |
15
|
64
|
|
|
|
|
106
|
my $s = {}; |
16
|
64
|
|
|
|
|
545
|
$row->_ht_render_i($s, $id . "__" . $i++); |
17
|
64
|
|
|
|
|
269
|
push @res, $s; |
18
|
|
|
|
|
|
|
} |
19
|
36
|
|
|
|
|
324
|
$stash->{$n} = \@res; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |