lib/Grimlock/Web/Controller/API.pm

filter: Statementstmt 86.9% 20 / 23 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 84.3% 27 / 32 CC 2 SCAR 4.0
CC
2
Cov
84%
base
2.7
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« lib/Grimlock/Schema/Result/User.pm ↑ Summary lib/Grimlock/Schema/Candy.pm »
1 package Grimlock::Web::Controller::API;
2 {
3 4 $Grimlock::Web::Controller::API::VERSION = '0.11';
4 }
5  
6 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 ▶BEGIN { extends 'Catalyst::Controller::REST' };
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 4 __PACKAGE__->config(
12 'default' => 'text/html',
13 map => {
14 'text/html' => [ 'View', 'HTML' ],
15 'application/json' => [ 'View', 'JSON' ],
16 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
17 }
18 );
19  
20 29 ▶sub base : Chained('/') PathPart('') CaptureArgs(0) {
Subroutine base: called CC=2 SCAR=10.1
Pod undocumented
21 29 my ( $self, $c ) = @_;
22 29 ▶ if ( $c->debug ){
Branch: 1 branch
BranchTrueFalseTotal
if ($c->debug) 0 29 29
23 0 $c->log->debug("***** ENVIRONMENT INFO *****");
24 0 $c->log->debug("Config: " . $ENV{'CATALYST_CONFIG'});
25 0 $c->log->debug("Database connection: " . Dumper $c->model('Database')->schema->storage->connect_info);
26 }
27 4 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29  
30 4 __PACKAGE__->meta->make_immutable;
31 4 1;
« lib/Grimlock/Schema/Result/User.pm ↑ Summary lib/Grimlock/Schema/Candy.pm »