Branch Coverage

blib/lib/Footprintless/Plugin/Database/AbstractProvider.pm
Criterion Covered Total %
branch 32 92 34.7


line true false branch
28 0 0 unless $self->{'connection'}
41 0 0 if ($options{'in_file'})
42 0 0 unless open $in_file, '<', delete $options{'in_file'}
45 0 0 if ($options{'in_string'})
47 0 0 unless open $in_file, '<', \$string
53 0 0 if $local_in
61 0 0 if ($in_file)
65 0 0 if $error
71 0 0 if (defined $statement_handle->{'NUM_OF_FIELDS'})
76 0 0 if defined $statement_handle->{'NAME'}
78 0 0 if defined $statement_handle->{'TYPE'}
79 0 0 if (my $type_info = $self->{'connection'}->type_info($statement_handle->{'TYPE'}[$_]))
83 0 0 if defined $type_info->{'TYPE_NAME'}
84 0 0 if defined $type_info->{'NAME'}
87 0 0 if defined $statement_handle->{'PRECISION'}
89 0 0 if defined $statement_handle->{'SCALE'}
90 0 0 if (defined $statement_handle->{'NULLABLE'} and (my $nullable = $statement_handle->{'NULLABLE'}[$_]) != 2)
93 0 0 $nullable ? :
104 0 0 unless $self->{'connection'}
114 0 5 if $self->{'connection'}
132 0 5 if $self->{'tunnel'}
134 0 5 if ($self->{'tunnel_hostname'})
159 5 7 if ($self->{'connection'})
165 0 12 if ($self->{'tunnel'})
195 0 25 if ($self->{'tunnel'}) { }
204 25 0 $hostname eq 'localhost' ? :
232 10 1 ref $query eq 'HASH' ? :
234 0 11 if ($logger->is_trace)
235 0 0 $parameters ? :
244 2 9 defined $parameters ? :
253 0 11 if ($@)
267 0 8 if $column_info
268 8 0 if (not $options{'no_fetch'})
271 0 16 if $hash
282 2 0 scalar(@_) % 2 ? :
290 4 0 if ($row_mapper) { }
294 0 0 $hash ? :
299 1 1 wantarray ? :
303 2 2 scalar(@_) % 2 ? :
311 4 4 if ($row_mapper) { }
316 0 4 $hash ? :
0 4 $hash ? :
321 2 2 wantarray ? :
332 2 0 if (my(@row) = $statement_handle->fetchrow_array)
333 1 1 if ($row_mapper) { }
351 0 0 unless $self->{'connection'}