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 706 0 $dsn =~ s/;?\bdsn=(.*)$// && $1
190 699 2 4 $go_attr{'go_cache'} and not ref $go_attr{'go_cache'}
363 145 60 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 2379 0 7 $attrib =~ /^[a-z]/ and not $attrib =~ /^go_/
507 4 10 0 $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 1064 $attr and not %$attr
592 650 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 ||= {}
146 0 10 $$attr{'go_connect_method'} || 'connect_cached'
178 705 0 $go_attr{'go_policy'} || 'classic'
224 700 0 $go_policy->connect_method($remote_dsn, $go_attr) || 'connect'
371 142 43 $$dbh{'go_meta_cache'} ||= {}
374 36 149 wantarray || 0
536 578 500 delete $$attr{'go_prepare_method'} || $$dbh{'go_prepare_method'} || $policy->prepare_method($dbh, $statement, $attr) || 'prepare'
566 2 8 $attr ||= {}
567 0 10 $$attr{'go_prepare_method'} || 'prepare_cached'
592 0 5 $$sth{'Database'}{'go_dsn'} || ''
706 950 527 $NUM_OF_FIELDS || 0
754 30 182 ref $slice || 'ARRAY'

or 3 conditions

line l !l&&r !l&&!r condition
224 5 700 0 $go_connect_method ||= $go_policy->connect_method($remote_dsn, $go_attr) || 'connect'
288 815 250 2984 $dbh_attribute_update eq 'every' or $$dbh{'go_request_count'} == 1
302 0 4049 0 $response ||= $transport->receive_response($request, $retransmit_sub)
497 5795 2 790 $dbh_local_store_attrib{$attrib} or $attrib =~ /^private_/
5797 776 14 $dbh_local_store_attrib{$attrib} or $attrib =~ /^private_/ or not $dbh->FETCH('Active')
534 0 1084 0 delete $$attr{'go_policy'} || $$dbh{'go_policy'}
619 1335 48 156 $dbh_attribute_update eq 'every' or $$dbh{'go_request_count'} == 1
630 4 1535 0 $response ||= $transport->receive_response($request, $retransmit_sub)
733 3122 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 212 0 24 $$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 182 ref $slice or defined $max_rows
770 3384 0 0 $sth_local_store_attrib{$attrib} or $attrib =~ /^private_/