Helper/ResultSet/Shortcut/Prefetch.pm

filter: Statementstmt 100% 12 / 12 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 19 / 19 CC 2 SCAR 3.4
CC
2
Cov
100%
prefetch
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Helper/ResultSet/Me.pm ↑ Summary Helper/Schema/GenerateSource.pm »
1 package DBIx::Class::Helper::ResultSet::Shortcut::Prefetch;
2 57 $DBIx::Class::Helper::ResultSet::Shortcut::Prefetch::VERSION = '2.037000';
3 57 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 57 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 57 ▶use parent 'DBIx::Class::ResultSet';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶sub prefetch { return shift->search(undef, { prefetch => @_ > 1 ? \@_ : shift }) }
Subroutine prefetch: called CC=2 SCAR=6.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
@_ > 1 ? : 1 2 3
9  
10 57 1;
11  
12 __END__
« Helper/ResultSet/Me.pm ↑ Summary Helper/Schema/GenerateSource.pm »