Condition Coverage

blib/lib/DBI/Gofer/Execute.pm
Criterion Covered Total %
condition 57 115 49.5


and 3 conditions

line !l l&&!r l&&r condition
145 6451 3 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 6428 0 0 $CK and keys %$CK > $self->{'max_cached_sth_per_dbh'}
261 26 2432 3996 $dbh and $dbh->{'Executed'}
343 0 3659 0 $rv_ref and my $lid_args = $request->dbh_last_insert_id_args
349 0 3649 10 $rv_ref and UNIVERSAL::isa($rv_ref->[0], 'DBI::st')
486 48 0 2721 $dbh_attr_set and %$dbh_attr_set
611 7 0 0 $callbacks->{$method} and $prev->{$method}
0 0 0 $callbacks->{$method} and $prev->{$method} and $callbacks->{$method} != $prev->{$method}
679 0 0 0 $frozen_request and length $frozen_request > ($stats->{'frozen_request_max_bytes'} || 0)
682 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 56 $args->{'default_connect_attributes'} ||= {}
65 0 56 $args->{'forced_connect_attributes'} ||= {}
66 0 56 $args->{'max_cached_sth_per_dbh'} ||= 1000
67 0 56 $args->{'stats'} ||= {}
164 6454 0 $connect_method ||= 'connect_cached'
174 2900 3554 $self->{'forced_gofer_random'} || $ENV{'DBI_GOFER_RANDOM'} || ''
246 2 0 $DBI::stderr || 1
294 6454 0 $request->version || 0
323 2166 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 } } || []
524 2411 312 $stats->{'rows_returned_max'} || 0
540 2324 399 $meta{'NUM_OF_FIELDS'} || 0
549 243 1 $DBI::err || 1
564 156966 45286 $all_dbh_methods{$method} || 42
565 178443 23809 $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
679 0 0 $stats->{'frozen_request_max_bytes'} || 0
682 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 6454 0 0 $self->forced_connect_dsn || $dsn || $self->default_connect_dsn
217 0 2900 3528 $self->{'forced_gofer_random'} || $ENV{'DBI_GOFER_RANDOM'}
246 1597 2 0 $err ||= $DBI::stderr || 1
295 0 0 6454 $version < 0.009116 or $version >= 1
302 6454 0 0 $response ||= $self->new_response_with_err(undef, $@, $current_dbh)
386 6151 0 0 tied %$h || $h
518 0 0 2723 $sth->more_results or $sth->{'syb_more_results'}
550 243 1 0 $DBI::errstr || $@
615 6 1 0 defined $fail_percent or defined $delay_percent
657 0 1487 0 $fail_err || $DBI::stderr
699 0 0 0 not $response or $response->err