blib/lib/Clustericious/HelloWorld.pm

filter: Statementstmt 84.2% 16 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod n/a totaltotal 80.0% 20 / 25 CC 1 SCAR 1.7
CC
1
Cov
84%
__ANON__
2.0
__ANON__
1.1
BEGIN
1.0
CRAP 1.2
« blib/lib/Clustericious/Coder/YAML.pm ↑ Summary blib/lib/Clustericious/Coder/JSON.pm »
1 package Clustericious::HelloWorld;
2  
3 17 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 17 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 17 ▶use Mojo::Base 'Clustericious::App';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 17 ▶use Clustericious::RouteBuilder qw/Clustericious::HelloWorld/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # ABSTRACT: Clustericious hello world application
9 17 our $VERSION = '1.29'; # VERSION
10  
11  
12 0 ▶get '/' => sub { shift->render(text => 'Hello, world') } => 'index';
Subroutine __ANON__: not called CC=1 SCAR=1.2
13  
14 0 ▶get '/modules' => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
15 0 my %copy = %INC;
16 0 shift->stash->{autodata} = \%copy;
17 17 } => 'modules';
18  
19 17 1;
20  
21 __END__
« blib/lib/Clustericious/Coder/YAML.pm ↑ Summary blib/lib/Clustericious/Coder/JSON.pm »