Schema/Candy.pm

filter: Statementstmt 100% 9 / 9 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 89.4% 17 / 19 CC 3 SCAR 5.7
CC
3
Cov
85%
base
2.1
autotable
2.1
BEGIN
1.0
CRAP 1.8
« Schema/Populate/CountryLocale.pm ↑ Summary Schema/ResultSet/Tax.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 192 ▶sub base { $_[1] || 'DBIx::Class::Core' }
Subroutine base: called CC=2 SCAR=7.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
$_[1] or "DBIx::Class::Core" 192 0 192
21  
22 =head2 autotable
23  
24 Set autotable to either what is set by the Result class or else to 1
25  
26 =cut
27  
28 96 ▶sub autotable { $_[1] || 1 }
Subroutine autotable: called CC=2 SCAR=7.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
$_[1] or 1 96 0 96
29  
30 2 1;
« Schema/Populate/CountryLocale.pm ↑ Summary Schema/ResultSet/Tax.pm »