Branch Coverage

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


line true false branch
145 2 9 if ($self->{'dupes'})
146 1 1 if $self->{'dupes'} eq "ignore"
147 1 1 if $self->{'dupes'} eq "update"
212 13 18 if $_[0] and ref $_[0]
215 14 4 if (@_) { }
2 2 elsif ($self->{'buffer_counter'}) { }
218 1 13 unless $self->{'cols'}
221 2 11 if scalar(@_) % scalar(@{$self->{'cols'};})
224 1 10 if $self->{'hash_buffer'}
230 4 10 if ($rows > $left) { }
238 9 5 if $self->{'buffer_counter'} == $self->{'buffer'}
318 3 7 if (ref $fields eq 'ARRAY') { }
374 2 15 unless $table and $columns and @$columns
390 1 12 if $self->{'buffer_counter'} and not $self->{'hash_buffer'}
393 1 11 unless defined $self->{'cols'}
398 5 7 if $self->{'buffer_counter'} == $self->{'buffer'}
407 6 3 unless $self->{'full_buffer_insert'}
425 2 3 if $self->{'hash_buffer'}
461 8 11 unless defined $self->{'row_total'}
463 17 2 if $self->{'last_retval'}
476 3 10 if $self->{'buffer_counter'}
487 4 32 $dupe eq 'ignore' ? :
491 4 32 if $dupe eq "update"
506 7 45 if $null and not defined $fields->{$key}
508 12 40 if (ref $fields->{$key}) { }
517 31 1 if @$cols