lib/DBIx/ActiveRecord/Arel/Value.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 3 totaltotal 90.0% 27 / 30 CC 3 SCAR 4.5
CC
3
Cov
100%
placeholder
2.0
binds
2.0
BEGIN
1.0
CRAP 1.6
« lib/DBIx/ActiveRecord/Arel/Query/Update.pm ↑ Summary lib/DBIx/ActiveRecord/Arel/Join.pm »
1 package DBIx::ActiveRecord::Arel::Value;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 36 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
6 36 my ($self, $value) = @_;
7 36 bless {value => $value}, $self;
8 }
9  
10 34 ▶sub placeholder {
Subroutine placeholder: called CC=2 SCAR=6.9
Pod undocumented
11 34 my $self = shift;
12 34 ▶ if (ref $self->{value} eq 'ARRAY') {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $self->{"value"} eq "ARRAY") 3 31 34
13 3 return join(', ', map {'?'} @{$self->{value}});
14 }
15 31 '?';
16 }
17  
18 34 ▶sub binds {
Subroutine binds: called CC=2 SCAR=6.9
Pod undocumented
19 34 my $self = shift;
20 34 ▶ ref $self->{value} eq 'ARRAY' ? @{$self->{value}} : $self->{value};
Branch: 1 branch
BranchTrueFalseTotal
ref $self->{'value'} eq 'ARRAY' ? : 3 31 34
21 }
22  
23 2 1;
« lib/DBIx/ActiveRecord/Arel/Query/Update.pm ↑ Summary lib/DBIx/ActiveRecord/Arel/Join.pm »