blib/lib/Smolder/Control/Developer.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::Developer;
2 use base 'Smolder::Control';
3 use strict;
4 use warnings;
5  
6 =head1 NAME
7  
8 Smolder::Control::Developer
9  
10 =head1 DESCRIPTION
11  
12 Controller module for generic Developer screens
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  
28 sub require_group { 'developer' }
29  
30 =head1 RUN MODES
31  
32 =head2 welcome
33  
34 Shows a welcome page using the F<Developer/welcome.tmpl> template.
35  
36 =cut
37  
38 sub welcome {
39 my $self = shift;
40 return $self->tt_process({});
41 }
42  
43 1;