blib/lib/Smolder/Control/Admin.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
setup
2.0
require_group
2.0
welcome
2.0
CRAP 2.0
1 package Smolder::Control::Admin;
2 use base 'Smolder::Control';
3 use strict;
4 use warnings;
5  
6 =head1 NAME
7  
8 Smolder::Control::Admin
9  
10 =head1 DESCRIPTION
11  
12 Controller module for admin pages.
13  
14 =cut
15  
16 sub setup {
17 my $self = shift;
18 $self->start_mode('welcome');
19 $self->run_modes(
20 [
21 qw(
22 welcome
23 )
24 ]
25 );
26 }
27 sub require_group { 'admin' }
28  
29 =head1 RUN MODES
30  
31 =head2 welcome
32  
33 Shows a welcome page using the F<Admin/welcome.tmpl> template.
34  
35 =cut
36  
37 sub welcome {
38 my $self = shift;
39 return $self->tt_process({});
40 }
41  
42 1;