Condition Coverage

blib/lib/DBD/File.pm
Criterion Covered Total %
condition 57 171 33.3


and 3 conditions

line !l l&&!r l&&r condition
113 0 0 0 defined $attr_hash->{'f_dir'} and not -d $attr_hash->{'f_dir'}
120 416 164 48 defined $attr->{'f_dir'} and not -d $attr->{'f_dir'}
0 580 48 $attr and (defined $attr->{'f_dir'} and not -d $attr->{'f_dir'})
223 194 0 386 exists $$dbh{$drv_prefix . 'meta'} and not $dbh->{'sql_engine_in_gofer'}
239 0 0 0 $attrib eq 'f_meta' and $dbh->{'sql_engine_in_gofer'}
248 3592 0 496 $attrib eq 'f_dir' and defined $value
260 4088 0 0 $attrib eq 'f_meta' and $dbh->{'sql_engine_in_gofer'}
284 0 0 0 $meta and $meta->{'f_encoding'}
318 0 0 748 exists $sth->{'ImplementorClass'} and exists $sth->{'sql_stmt'}
0 748 0 exists $sth->{'ImplementorClass'} and exists $sth->{'sql_stmt'} and $sth->{'sql_stmt'}->isa('SQL::Statement')
323 0 0 0 exists $sth->{'f_overall_defs'} and ref $sth->{'f_overall_defs'}
347 0 0 0 exists $meta->{'table_defs'} and ref $meta->{'table_defs'}
350 0 0 0 defined $field_info->{'data_type'} and not $field_info->{'data_type'} =~ /^[0-9]+$/
402 0 0 32 $attr && exists $attr->{'f_dir'}
404 0 0 32 -d $dir and -r $dir
0 0 32 -d $dir and -r $dir and -x $dir
415 32 0 0 $attr->{'f_dir_search'} and ref $attr->{'f_dir_search'} eq 'ARRAY'
431 32 0 40 $file ne 'File::Spec'->updir and -d $d
448 32 0 4 $dbh->{'f_dir_search'} and ref $dbh->{'f_dir_search'} eq 'ARRAY'
463 16 0 0 defined $dbh->{'f_schema'} && $dbh->{'f_schema'} ne ''
504 0 0 0 not $respect_case and $meta->{'sql_identifier_case'} == 1
0 0 0 not $respect_case and $meta->{'sql_identifier_case'} == 2
553 0 0 0 $self->can_flock and $meta->{'fh'}
557 0 0 0 defined $flags->{'f_lock'} && $flags->{'f_lock'} =~ /^[012]$/
591 0 136 296 $ext and $opt
598 100 330 4 $file_is_table and defined $meta->{'f_file'}
608 0 398 32 $dir =~ m(^(?:[.][/\\]?|\[\])$) and ref $meta->{'f_dir_search'} eq 'ARRAY'
621 0 418 16 not $respect_case and $meta->{'sql_identifier_case'} == 1
0 0 418 not $respect_case and $meta->{'sql_identifier_case'} == 2
649 0 0 0 $^O eq 'VMS' and $sfx eq '.'
659 1926 0 0 $^O eq 'VMS' and $sfx eq '.'
674 164 0 266 @f > 0 and @f <= 2
675 0 430 0 not $respect_case and $meta->{'sql_identifier_case'} == 4
679 2 136 292 $ext and $req
691 142 0 244 defined $meta->{'f_lockfile'} and $meta->{'f_lockfile'}
693 386 0 0 $dir and not $user_spec_file
703 0 0 460 defined $meta->{'f_fqfn'} and $meta->{'f_fqfn'} ne ''
746 0 2 410 $self->can_flock and $fh
750 410 0 0 defined $flags->{'f_lock'} && $flags->{'f_lock'} =~ /^[012]$/
802 4 0 0 tied $_[0] and tied($_[0])->can('TIEHANDLE')
931 0 0 0 $whence == 0 and $pos == 0

or 2 conditions

line l !l condition
55 44 0 $attr ||= {}
353 0 0 $$types{$field_info->{'type_name'}} || 0
355 0 0 $$types{$field_info->{'data_type'}} || 'CHAR'

or 3 conditions

line l !l&&r !l&&!r condition
60 0 0 0 ${$class . '::ATTRIBUTION';} || "oops the author of $class forgot to define this"
18 0 0 $attr->{'Attribution'} ||= ${$class . '::ATTRIBUTION';} || "oops the author of $class forgot to define this"
63 0 44 0 $attr->{'Version'} ||= ${$class . '::VERSION';}
256 0 108 0 $value eq '' or $value =~ m[^\.\w+(?:/[rR]*)?$]
286 0 0 16 $f_encoding ||= $dbh->{'f_encoding'}
329 0 0 0 $$types{$t->[$i][1]} ||= uc $t->[$i][0]
338 0 0 0 $$types{$_->[0]} ||= $_->[1]
339 0 0 0 $$types{$_->[1]} ||= $_->[0]
355 0 0 0 $field_info->{'type_name'} ||= $$types{$field_info->{'data_type'}} || 'CHAR'
540 0 0 0 $flags->{'createMode'} or $flags->{'lockMode'}
585 40 40 434 $file eq '.' or $file eq '..'
651 0 0 0 lc $sfx eq lc $ext || !($req || $sfx)
661 246 28 338 lc $sfx eq lc $ext || !($req || $sfx)
931 0 0 0 $whence != 2 or $pos != 0