Schema/Candy.pm

filter: Statementstmt 100% 9 / 9 Branchbran 100% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 100% 17 / 19 CC 3 SCAR 5.1
CC
3
Cov
100%
base
2.0
autotable
2.0
BEGIN
1.0
CRAP 1.7
« Schema/Result/PriceModifier.pm ↑ Summary Schema/Result/Inventory.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=6.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
$_[1] or "DBIx::Class::Core" 208 0 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=6.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
$_[1] or 1 104 0 104
33  
34 2 1;
« Schema/Result/PriceModifier.pm ↑ Summary Schema/Result/Inventory.pm »