WSST/Templates/html/lib.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 22 CC 3 SCAR 16.5
CC
3
Cov
0%
html_title
6.0
html_bool
6.0
footnotes_link_filter_factory
2.0
CRAP 5.2
1 sub html_title {
2 return $schema->data->{html_title} if $schema->data->{html_title};
3 return sprintf("%s_%s", $tmpl->get('company_name'), $tmpl->get('service_name'));
4 }
5  
6 sub html_bool {
7 return sub {
8 my $text = shift;
9 return $text ? '○' : '';
10 };
11 }
12  
13 sub footnotes_link_filter_factory {
14 my $type = shift;
15 my $method_num = shift;
16  
17 return sub {
18 sub {
19 my $text = shift;
20 $text =~ s|\*(\d+)|<a href="#wsst_method_${type}_footnotes_${method_num}_$1">*$1</a>|g;
21 return $text;
22 };
23 };
24 }
25  
26 1;