Branch Coverage

blib/lib/DBIx/Squirrel/it.pm
Criterion Covered Total %
branch 75 184 40.7


line true false branch
44 0 9 unless keys %DBIx::Squirrel::
81 0 60 unless ($sth->{'Executed'})
82 0 0 unless defined $self->start
84 0 60 unless $sth->{'Active'}
87 0 60 unless $rows
88 25 35 unless ($attr->{'cache_size_fixed'})
89 12 13 if ($attr->{'cache_size'} < CACHE_SIZE_LIMIT())
90 10 2 if @{$rows;} >= $attr->{'cache_size'}
94 60 0 defined $attr->{'buffer'} ? :
107 9 0 if $attr->{'sth'}{'NUM_OF_FIELDS'}
115 0 10 if $attr->{'cache_size'} > CACHE_SIZE_LIMIT()
122 9 0 if ($attr->{'sth'}{'NUM_OF_FIELDS'})
135 4 6892 unless defined $attr_by_id{$id}
138 6892 4 unless (@_)
139 4682 2210 wantarray ? :
141 0 4 unless (defined $_[0])
145 4 0 if (@_)
146 0 4 unless defined $attr_by_id{$id}
147 4 0 if (UNIVERSAL::isa($_[0], 'HASH')) { }
194 8 1106 if $self->_results_pending
195 4 1102 unless $self->is_active
196 60 1042 if ($self->_cache_empty)
197 0 60 unless $self->_cache_charge
203 4 14 if @{$results;}
204 6 12 unless $attr->{'results_count'}++
211 0 8 unless defined $attr->{'results_pending'}
213 0 8 unless $attr->{'results_count'}++
229 1100 2 if ($transform) { }
248 1102 0 wantarray ? :
254 9 0 if $attr->{'sth'}{'NUM_OF_FIELDS'}
260 514 600 unless defined $attr->{'results_pending'}
266 0 4 unless @_
267 0 4 unless UNIVERSAL::isa($_[0], "ARRAY")
269 4 0 unless defined $attr->{'results_pending'}
276 0 5 if (@_)
279 0 5 if ($DBIx::Squirrel::it::DEFAULT_CACHE_SIZE < 2)
287 0 37 if (@_)
290 0 37 if ($DBIx::Squirrel::it::CACHE_SIZE_LIMIT > 64)
298 0 0 if (@_)
305 0 0 if DBIx::Squirrel::util::global_destruct_phase()
319 1 0 if (@_) { }
320 0 1 unless &looks_like_number($_[0])
321 0 1 if $_[0] < DEFAULT_CACHE_SIZE() or $_[0] > CACHE_SIZE_LIMIT()
330 0 0 unless defined $attr->{'cache_size'}
342 0 0 unless @_
343 0 0 if (ref $_[0]) { }
345 0 0 if @_
349 0 0 if @_
360 0 0 unless ($attr->{'sth'}{'Executed'})
361 0 0 unless defined $self->start
369 0 0 unless ($attr->{'sth'}{'Executed'})
370 0 0 unless defined $self->start
377 0 0 unless ($attr->{'sth'}{'Executed'})
378 0 0 unless defined $self->start
380 0 0 if (exists $attr->{'results_first'}) { }
400 0 4 unless defined $self->start(@_)
406 0 0 unless ($attr->{'sth'}{'Executed'})
407 0 0 unless defined $self->start
415 0 0 unless ($attr->{'sth'}{'Executed'})
438 0 4 ref $_[0] ? :
440 0 4 unless UNIVERSAL::isa($sth, "DBIx::Squirrel::st")
454 0 2 unless ($sth->{'Executed'})
455 0 0 unless defined $self->start
473 0 4 unless ($sth->{'Executed'})
474 0 0 unless defined $self->start
480 0 4 wantarray ? :
485 0 4 if (@_)
486 0 0 if (ref $_[0]) { }
488 0 0 if @_
492 0 0 if @_
534 1106 4 if (UNIVERSAL::isa($_[0], 'ARRAY')) { }
0 4 elsif (UNIVERSAL::isa($_[0], 'CODE')) { }
545 1106 4 if (@transforms and @_)
548 1084 41 unless @results = do { local($_) = (local($_RESULT) = @results); &$transform(@results) }
554 1108 2 if wantarray
565 0 0 unless defined $self->start
566 0 0 unless defined $self->_result_fetch
567 0 0 if @{$attr->{'buffer'};}
568 0 0 exists $attr->{'results_first'} ? :
577 0 0 if (@_) { }
578 0 0 if (ref $_[0])
579 0 0 if (UNIVERSAL::isa($_[0], "ARRAY"))
583 0 0 if (UNIVERSAL::isa($_[0], "HASH"))
591 0 0 unless $attr->{'slice'}
598 0 0 unless @_
599 0 0 if (ref $_[0]) { }
601 0 0 if @_
605 0 0 if @_
617 0 9 if (@{$transforms;}) { }
621 6 3 unless (defined $attr->{'transforms'} and @{$attr->{'transforms'};})
625 4 5 if (@bind_values) { }
629 5 0 unless (defined $attr->{'bind_values'} and @{$attr->{'bind_values'};})