Branch Coverage

blib/lib/DBIx/NamedParams.pm
Criterion Covered Total %
branch 28 38 73.6


line true false branch
42 174 0 if (/^SQL_(.*)$/i)
73 1 3 wantarray ? :
85 0 1 if ($self->get_info($DBIx::NamedParams::GetInfoType{'SQL_DBMS_NAME'}) eq 'Microsoft SQL Server')
95 9 9 if ($sqlex =~ /\:([\w]+)\+-($_SQL_Types)\b/)
96 4 5 if ($validHash) { }
104 0 13 if ($_log)
107 0 13 unless my $sth = $self->prepare($sqlex)
109 4 9 if ($validHash)
118 4 0 if (ref $refHash->{$name} eq 'ARRAY') { }
133 0 22 if ($_log)
134 0 0 !$repeat ? :
137 17 5 if (not $repeat) { }
163 11 31 if (@_)
166 2 40 unless $inner->{$_package}{'MappedParams'}
172 5 29 if (not defined $refHash or (&reftype($refHash) || '') ne 'HASH')
179 14 63 if ($KeepBindingIfNoKey and not exists $$refHash{$param->{'Name'}})
184 47 16 $idx < 0 || ref $value1 ne 'ARRAY' ? :
189 0 63 if ($_log)
192 0 63 unless $self->bind_param($i, $value2, {'TYPE', $datatype})