Branch Coverage

blib/lib/DBIx/Interp.pm
Criterion Covered Total %
branch 23 66 34.8


line true false branch
47 4 12 if ($want) { }
50 0 16 if ($@)
51 4 12 $want ? :
70 1 0 if (UNIVERSAL::isa($_[0], 'DBI::db')) { }
0 0 elsif (ref $_[0] eq 'ARRAY') { }
75 0 0 unless defined $dbh
105 0 0 unless $dbh
108 0 0 if ($@)
133 0 36 if (ref $_ eq 'DBIx::Interp::Key') { }
0 36 elsif (ref $_ eq 'DBIx::Interp::Attr') { }
143 0 8 if defined $key
150 8 0 if (UNIVERSAL::isa($_[0], 'DBIx::Interp::db')) { }
166 0 0 unless $stx->execute_i(@list)
168 0 0 if my $row = $sth->$method
186 0 0 unless $stx->execute_i(@list)
189 0 0 $rows == 0 ? :
200 0 0 unless my $row = $self->_do_selectrow_i('fetchrow_arrayref', @list)
202 0 0 unless $want
239 0 2 unless $stx->execute_i(@list)
243 0 2 if (not $slice and $slice = $attr->{'Columns'})
244 0 0 if (ref $slice eq 'ARRAY')
251 0 2 if defined $MaxRows
269 0 0 unless $stx->execute_i(@list)
287 0 0 unless $stx->execute_i(@list)
288 0 0 $attr->{'Columns'} ? :
293 0 0 unless $sth->bind_col($_, \$values[$idx++])
296 0 0 if (my $max = $attr->{'MaxRows'}) { }
339 1 1 if (defined $max_sths) { }
363 0 6 if defined $bind[0] and ref $bind[0] eq ''
366 5 1 unless (defined $sth)
367 0 5 unless $sth = $self->{'dbx'}->prepare($sql, $attr)
368 2 3 if (@{$self->{'sql_queue'};} + 1 > $self->{'max_sths'})
385 1 5 if (ref $bind[0] eq 'ARRAY') { }