Schema/Candy.pm

filter: Statementstmt 100% 9 / 9 Branchbran 0.0% 2 / 4 (2 uncoverable) Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 78.9% 17 / 19 (2 uncoverable) CC 3 SCAR 9.0
CC
3
Cov
69%
base
3.2
autotable
3.2
BEGIN
1.0
CRAP 2.5
« Schema/Populate/Zone.pm ↑ Summary Schema/Populate/CountryLocale.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Interchange6::Schema::Candy;
3  
4 =head1 NAME
5  
6 Interchange6::Schema::Candy - add DBIx::Class::Candy to our Result classes
7  
8 =cut
9  
10 2 ▶use base 'DBIx::Class::Candy';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 =head1 METHODS
13  
14 =head2 base
15  
16 Set base to either what is set by the Result class or else to DBIx::Class::Core
17  
18 =cut
19  
20 # we want to know if a class tries to use a difference base class
21 # uncoverable branch false
22 208 ▶sub base { $_[1] || 'DBIx::Class::Core' }
Subroutine base: called CC=2 SCAR=11.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
$_[1] or "DBIx::Class::Core" 0 208 208
23  
24 =head2 autotable
25  
26 Set autotable to either what is set by the Result class or else to 1
27  
28 =cut
29  
30 # we want to know if a class tries to set its table name
31 # uncoverable branch false
32 104 ▶sub autotable { $_[1] || 1 }
Subroutine autotable: called CC=2 SCAR=11.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
$_[1] or 1 0 104 104
33  
34 2 1;
« Schema/Populate/Zone.pm ↑ Summary Schema/Populate/CountryLocale.pm »