auto/share/dist/Rhetoric/widgets/sidebar/archives.pl untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use common::sense;
2 use File::Basename;
3 use Data::Dump 'pp';
4  
5 # archive list
6 sub {
7 my ($self) = @_;
8 my $v = $self->v;
9 my $tt = $self->env->{tt};
10 my $storage = $self->env->{storage};
11 my $template;
12 my ($file, $dir, $suffix) = fileparse(__FILE__, '.pl');
13 $template = $file;
14 $template =~ s/\d+_//;
15 $template .= ".html";
16 my $out;
17  
18 $v->{archives} = [ $storage->archives() ];
19 $tt->process($template, $v, \$out);
20 $out;
21 }