Condition Coverage

blib/lib/DBD/Gofer.pm
Criterion Covered Total %
condition 57 86 66.2


and 3 conditions

line !l l&&!r l&&r condition
158 0 0 716 $dsn =~ s/;?\bdsn=(.*)$// && $1
190 709 2 4 $go_attr{'go_cache'} and not ref $go_attr{'go_cache'}
363 145 64 0 $dbh->{'dbi_default_methods'}{$method} and $dbh->{'go_policy'}->skip_default_methods
422 0 18 0 $dbh->{'dbi_default_methods'}{$method} and $dbh->{'go_policy'}->skip_default_methods
481 2401 0 7 $attrib =~ /^[a-z]/ and not $attrib =~ /^go_/
507 4 0 10 $DBD::Gofer::xxh_local_store_attrib_if_same_value{$attrib} and do { my $crnt = $dbh->FETCH($attrib); local $^W; defined $value ^ defined $crnt ? 0 : $value eq $crnt }
542 0 20 1084 $attr and not %$attr
592 2152 5 0 @params > 9 and ($sth->{'Database'}{'go_dsn'} || '') =~ /dbi:Sybase/

or 2 conditions

line l !l condition
116 0 0 $attr || {}
145 10 0 $attr ||= {}
148 0 10 $attr->{'go_connect_method'} || 'connect_cached'
178 715 0 $go_attr{'go_policy'} || 'classic'
224 710 0 $go_policy->connect_method($remote_dsn, $go_attr) || 'connect'
371 142 43 $dbh->{'go_meta_cache'} ||= {}
374 36 149 wantarray || 0
538 594 500 delete $attr->{'go_prepare_method'} || $dbh->{'go_prepare_method'} || $policy->prepare_method($dbh, $statement, $attr) || 'prepare'
566 2 12 $attr ||= {}
569 0 14 $attr->{'go_prepare_method'} || 'prepare_cached'
592 0 5 $sth->{'Database'}{'go_dsn'} || ''
706 2472 527 $NUM_OF_FIELDS || 0
754 30 184 ref $slice || 'ARRAY'

or 3 conditions

line l !l&&r !l&&!r condition
224 5 710 0 $go_connect_method ||= $go_policy->connect_method($remote_dsn, $go_attr) || 'connect'
290 843 250 2984 $dbh_attribute_update eq 'every' or $dbh->{'go_request_count'} == 1
302 0 4077 0 $response ||= $transport->receive_response($request, $retransmit_sub)
499 5845 2 800 $dbh_local_store_attrib{$attrib} or $attrib =~ /^private_/
5847 786 14 $dbh_local_store_attrib{$attrib} or $attrib =~ /^private_/ or not $dbh->FETCH('Active')
534 0 1104 0 delete $attr->{'go_policy'} || $dbh->{'go_policy'}
621 2857 48 156 $dbh_attribute_update eq 'every' or $dbh->{'go_request_count'} == 1
630 4 3057 0 $response ||= $transport->receive_response($request, $retransmit_sub)
733 4777 0 0 $sth->{'go_current_rowset'} || do { my $rowset_err = $sth->{'go_current_rowset_err'} || [1, 'no result set (did execute fail)']; return $sth->set_err(@$rowset_err) }
748 214 24 0 $sth->{'go_current_rowset'} || do { my $rowset_err = $sth->{'go_current_rowset_err'} || [1, 'no result set (did execute fail)']; return $sth->set_err(@$rowset_err) }
755 30 0 184 ref $slice or defined $max_rows
771 6428 0 0 $sth_local_store_attrib{$attrib} or $attrib =~ /^private_/