Condition Coverage

blib/lib/DBI/Gofer/Execute.pm
Criterion Covered Total %
condition 58 115 50.4


and 3 conditions

line !l l&&!r l&&r condition
145 4902 2 0 ++$$stats{'_requests_served'} % 1000 == 0 and my $max_cached_dbh_per_drh = $$self{'max_cached_dbh_per_drh'}
155 0 0 0 $$_{'Active'} and $_->disconnect
222 4878 0 0 $CK and keys %$CK > $$self{'max_cached_sth_per_dbh'}
261 26 2398 2480 $dbh and $$dbh{'Executed'}
343 0 3631 0 $rv_ref and my $lid_args = $request->dbh_last_insert_id_args
349 0 3621 10 $rv_ref and UNIVERSAL::isa($$rv_ref[0], 'DBI::st')
486 48 0 1199 $dbh_attr_set and %$dbh_attr_set
611 7 0 0 $$callbacks{$method} and $$prev{$method}
7 0 0 $$callbacks{$method} and $$prev{$method} and $$callbacks{$method} != $$prev{$method}
677 0 0 0 $frozen_request and length $frozen_request > ($$stats{'frozen_request_max_bytes'} || 0)
680 0 0 0 $frozen_response and length $frozen_response > ($$stats{'frozen_response_max_bytes'} || 0)
694 0 0 0 not $frozen_request and $request

or 2 conditions

line l !l condition
64 0 52 $$args{'default_connect_attributes'} ||= {}
65 0 52 $$args{'forced_connect_attributes'} ||= {}
66 0 52 $$args{'max_cached_sth_per_dbh'} ||= 1000
67 0 52 $$args{'stats'} ||= {}
164 4904 0 $connect_method ||= 'connect_cached'
174 2900 2004 $$self{'forced_gofer_random'} || $ENV{'DBI_GOFER_RANDOM'} || ''
246 2 0 $DBI::stderr || 1
294 4904 0 $request->version || 0
323 2138 1519 eval { do { $dbh = $self->_connect($request); my $args = $request->dbh_method_call; my $wantarray = shift @$args; my $meth = shift @$args; ++$$stats{'method_calls_dbh'}{$meth}; my(@rv) = $wantarray ? $dbh->$meth(@$args) : scalar $dbh->$meth(@$args); \@rv } } || []
523 893 308 $$stats{'rows_returned_max'} || 0
539 802 399 $meta{'NUM_OF_FIELDS'} || 0
549 223 1 $DBI::err || 1
564 83799 25125 $all_dbh_methods{$method} || 42
565 97520 11404 $ImplementorClass->can($method) || 42
578 2893 7 $$dbh{'Callbacks'} || {}
579 2893 7 $$dbh{'private_gofer_rand_fail_callbacks'} || {}
582 2893 7 $$callbacks{'_dbi_gofer_random_spec'} || ''
634 6 1 $fail_percent ||= 0
635 1 6 $delay_percent ||= 0
677 0 0 $$stats{'frozen_request_max_bytes'} || 0
680 0 0 $$stats{'frozen_response_max_bytes'} || 0
698 0 0 $$stats{'recent_requests'} ||= []
699 0 0 $$stats{'recent_errors'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
171 4904 0 0 $self->forced_connect_dsn || $dsn || $self->default_connect_dsn
217 0 2900 1978 $$self{'forced_gofer_random'} || $ENV{'DBI_GOFER_RANDOM'}
246 1597 2 0 $err ||= $DBI::stderr || 1
295 0 0 4904 $version < 0.009116 or $version >= 1
302 4904 0 0 $response ||= $self->new_response_with_err(undef, $@, $current_dbh)
386 3079 0 0 tied %$h || $h
518 0 0 1201 $sth->more_results or $$sth{'syb_more_results'}
550 223 0 1 $DBI::errstr || $@
615 6 1 0 defined $fail_percent or defined $delay_percent
657 0 0 1487 $fail_err || $DBI::stderr
699 0 0 0 not $response or $response->err