Branch Coverage

blib/lib/SQL/Inserter.pm
Criterion Covered Total %
branch 78 78 100.0


line true false branch
164 1 11 if not defined $self->{'oracle'} and $self->{'dbh'}{'Driver'}{'Name'} and $self->{'dbh'}{'Driver'}{'Name'} =~ /oracle/i
166 5 11 if $self->{'oracle'}
167 7 9 if ($self->{'dupes'})
168 1 6 if $self->{'dupes'} eq "ignore"
169 1 6 if $self->{'dupes'} eq "update"
234 23 25 if $_[0] and ref $_[0]
237 3 3 $self->{'buffer_counter'} ? :
6 19 unless @_
240 1 18 unless $self->{'cols'}
243 2 16 if scalar(@_) % scalar(@{$self->{'cols'};})
246 1 15 if $self->{'hash_buffer'}
253 7 15 if ($rows > $left) { }
261 14 8 if $self->{'buffer_counter'} == $self->{'buffer'}
285 1 1 if $self->{'buffer_counter'}
363 7 11 $opt->{'oracle'} ? :
366 5 13 if (ref $fields eq 'ARRAY') { }
368 2 3 $opt->{'oracle'} ? :
378 5 8 $opt->{'oracle'} ? :
384 11 7 unless $opt->{'oracle'}
427 4 22 unless $table and $columns and @$columns
428 6 16 if $variant and $variant eq "oracle"
446 2 7 $self->{'oracle'} ? :
455 1 22 if $self->{'buffer_counter'} and not $self->{'hash_buffer'}
458 1 21 unless defined $self->{'cols'}
459 9 13 unless defined $self->{'row_head'}
465 10 12 if $self->{'buffer_counter'} == $self->{'buffer'}
474 8 6 unless $self->{'full_buffer_insert'}
492 3 5 if $self->{'hash_buffer'}
511 4 9 $self->{'oracle'} ? :
517 4 9 $self->{'oracle'} ? :
528 11 21 unless defined $self->{'row_total'}
530 30 2 if $self->{'last_retval'}
543 4 14 if $self->{'buffer_counter'}
573 5 35 $variant eq 'ignore' ? :
577 5 35 if $variant eq "update"
587 17 35 $head ? :
592 9 71 if $null and not defined $fields->{$key}
594 17 63 if (ref $fields->{$key}) { }
603 49 3 if @$cols