blib/lib/Pinto/Schema/ResultSet/Package.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 88.0% 22 / 25 CC 2 SCAR 3.0
CC
2
Cov
94%
with_distribution
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Pinto/Action/Lock.pm ↑ Summary blib/lib/Pinto/Schema/ResultSet/Distribution.pm »
1 # ABSTRACT: Common queries for Packages
2  
3 63 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Pinto::Schema::ResultSet::Package;
6  
7 63 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 63 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 63 ▶use base 'DBIx::Class::ResultSet';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 #------------------------------------------------------------------------------
13  
14 63 our $VERSION = '0.14'; # VERSION
15  
16 #------------------------------------------------------------------------------
17  
18 5 ▶sub with_distribution {
Subroutine with_distribution: called CC=2 SCAR=7.2
Pod undocumented
19 5 my ( $self, $where ) = @_;
20  
21 5 ▶ return $self->search( $where || {}, { prefetch => 'distribution' } );
Condition50%1/2
$where || {}
l!l
05
MC/DC0%0/1
$where || {}
$where
Truth table50%1/2
A
A= $where
Aresult
11
00
22 }
23  
24 #------------------------------------------------------------------------------
25 63 1;
26  
27 __END__
« blib/lib/Pinto/Action/Lock.pm ↑ Summary blib/lib/Pinto/Schema/ResultSet/Distribution.pm »