blib/lib/auto/share/dist/Amon2/flavor/Large/lib/__PATH__/__MONIKER__/C/Root.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
index
2.0
reset_counter
2.0
BEGIN
2.0
CRAP 2.0
1 package <% $module %>::<% $moniker %>::C::Root;
2 use strict;
3 use warnings;
4 use utf8;
5  
6 sub index {
7 my ($class, $c) = @_;
8  
9 my $counter = $c->session->get('counter') || 0;
10 $counter++;
11 $c->session->set('counter' => $counter);
12 return $c->render('index.tx', {
13 counter => $counter,
14 });
15 }
16  
17 sub reset_counter {
18 my ($class, $c) = @_;
19  
20 $c->session->remove('counter');
21 return $c->redirect('/');
22 }
23  
24 1;