Branch Coverage

blib/lib/DBR/Query/Insert.pm
Criterion Covered Total %
branch 21 42 50.0


line true false branch
18 0 0 wantarray ? :
0 497 unless exists $_[0]
20 0 497 unless scalar @sets
23 0 2030 unless ref $_ eq 'DBR::Query::Part::Set'
39 497 497 unless $$self{'sets'} and $$self{'tables'}
46 0 1 if (defined(my $v = $field->default_val)) { }
47 0 0 unless my $value = $field->makevalue($v)
48 0 0 unless my $set = 'DBR::Query::Part::Set'->new($field, $value)
55 1 496 if (@missing)
65 0 497 unless @{$$self{'tables'};} == 1
66 0 497 unless $$self{'sets'}
68 497 0 unless $$self{'_fields_checked'}
76 0 496 unless my $conn = $self->instance->connect('conn')
89 0 496 if $$self{'where'}
90 0 496 if $$self{'lock'}
91 0 496 if $$self{'limit'}
101 0 496 unless my $conn = $self->instance->connect('conn')
103 42 454 if $self->quiet_error
104 0 496 unless $conn->prepSequence
106 0 496 unless my $rows = $conn->do($self->sql)
110 0 496 if $params{'void'}