example/lib/MyApp/Controller/Root.pm

filter: Statementstmt 86.9% 20 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 0.0% 0 / 3 totaltotal 80.0% 28 / 35 CC 1 SCAR 1.1
CC
1
Cov
87%
default
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« tutorial/lib/MyApp/Controller/Calculator.pm ↑ Summary tutorial/lib/MyApp/Controller/Root.pm »
1 #
2 # This file is part of CatalystX-ExtJS
3 #
4 # This software is Copyright (c) 2011 by Moritz Onken.
5 #
6 # This is free software, licensed under:
7 #
8 # The (three-clause) BSD License
9 #
10 package MyApp::Controller::Root;
11 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶BEGIN { extends 'Catalyst::Controller' }
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 __PACKAGE__->config(namespace => '');
17  
18 1 ▶sub index :Path :Args(0) {
Subroutine index: called CC=1 SCAR=0.0
Pod undocumented
19 1 my ( $self, $c ) = @_;
20 1 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22  
23 0 ▶sub default :Path {
Subroutine default: not called CC=1 SCAR=6.9
Pod undocumented
24 0 my ( $self, $c ) = @_;
25 0 $c->response->body( 'Page not found' );
26 0 $c->response->status(404);
27 1 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29  
30 1 ▶sub end : ActionClass('RenderView') {}
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine end: called CC=1 SCAR=0.0
Pod undocumented
31  
32 1 __PACKAGE__->meta->make_immutable;
33  
34 1 1;
« tutorial/lib/MyApp/Controller/Calculator.pm ↑ Summary tutorial/lib/MyApp/Controller/Root.pm »