Smooth/Result.pm

filter: Statementstmt 86.2% 25 / 29 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 72.7% 8 / 11 Podpod 0.0% 0 / 5 totaltotal 68.7% 33 / 48 CC 2 SCAR 6.9
CC
2
Cov
81%
base
6.0
perl_version
2.0
experimental
2.0
CRAP 2.0
« Smooth/Helper/Util.pm ↑ Summary Smooth/Flatten/DateTime.pm »
1 2 ▶use 5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package DBIx::Class::Smooth::Result;
6  
7 # ABSTRACT: Short intro
8 2 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 2 our $VERSION = '0.0108';
10  
11 2 ▶use parent 'DBIx::Class::Candy';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use String::CamelCase;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 2 ▶use experimental qw/signatures/;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 0 ▶sub base {
Subroutine base: not called CC=2 SCAR=17.9
Pod undocumented
17 0 (my $base = caller(2)) =~ s{::Schema::Result::.*$}{};
18  
19 0 ▶ return $_[1] || "${base}::Schema::Result";
Condition0%0/2
$_[1] || "${base}::Schema::Result"
l!l
00
MC/DC0%0/1
$_[1] || "${base}::Schema::Result"
$_[1]
Truth table0%0/2
A
A= $_[1]
Aresult
11
00
20 }
21 6 ▶sub autotable { 1 }
Subroutine autotable: called CC=1 SCAR=0.0
Pod undocumented
22 0 ▶sub perl_version { 20 }
Subroutine perl_version: not called CC=1 SCAR=6.9
Pod undocumented
23 0 ▶sub experimental { [ ] }
Subroutine experimental: not called CC=1 SCAR=6.9
Pod undocumented
24  
25 6 ▶sub gen_table($self, $resultclass, $version) {
Subroutine gen_table: called CC=1 SCAR=0.0
Pod undocumented
26 6 $resultclass =~ s{^.*::Schema::Result::}{};
27 6 $resultclass =~ s{::}{__}g;
28 6 $resultclass = String::CamelCase::decamelize($resultclass);
29  
30 6 return $resultclass;
31 }
32  
33 2 1;
34  
35 __END__
« Smooth/Helper/Util.pm ↑ Summary Smooth/Flatten/DateTime.pm »