| 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 || {}
MC/DC0%0/1
$where || {}
$where
Truth table50%1/2
A
A= $where
| |||||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | #------------------------------------------------------------------------------ | ||||||||||||
| 25 | 63 | 1; | |||||||||||
| 26 | |||||||||||||
| 27 | __END__ | ||||||||||||