Smooth/Helper/ResultSet/Shortcut/Join.pm

filter: Statementstmt 83.3% 20 / 24 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 75.0% 27 / 36 CC 3 SCAR 15.4
CC
3
Cov
71%
join
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.7
« Smooth/Helper/ResultSet/Shortcut/OrderByCollation.pm ↑ Summary Smooth/ResultSet.pm »
1 1 ▶use 5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package DBIx::Class::Smooth::Helper::ResultSet::Shortcut::Join;
6  
7 # ABSTRACT: Short intro
8 1 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 1 our $VERSION = '0.0108';
10  
11 1 ▶use parent 'DBIx::Class::Smooth::ResultSetBase';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Carp qw/confess/;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use experimental qw/signatures postderef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 0 ▶sub join($self, @args) {
Subroutine join: not called CC=3 SCAR=24.8
Pod documented
16  
17 0 ▶ if(!scalar @args) {
Branch: 2 branches
BranchTrueFalseTotal
if (not scalar @args) { } 0 0 0
elsif (scalar @args >= 2) { } 0 0 0
18 0 return $self;
19 }
20 elsif(scalar @args >= 2) {
21 0 die 'Too many args';
22 }
23 0 return $self->search(undef, { join => $args[0]});
24 }
25  
26 1 1;
27  
28 __END__
« Smooth/Helper/ResultSet/Shortcut/OrderByCollation.pm ↑ Summary Smooth/ResultSet.pm »