Condition Coverage

blib/lib/Dancer/Plugin/Database/Core.pm
Criterion Covered Total %
condition 0 48 0.0


and 3 conditions

line !l l&&!r l&&r condition
79 0 0 0 $handle->{'dbh'}{'Active'} and $conn_details->{'connection_check_threshold'}
0 0 0 $handle->{'dbh'}{'Active'} and $conn_details->{'connection_check_threshold'} and time - $handle->{'last_connection_check'} < $conn_details->{'connection_check_threshold'}
111 0 0 0 ref $handle_key and ref $handle_key ne ref $def_handle
182 0 0 0 exists $return_settings->{'connectivity-check-threshold'} and not exists $return_settings->{'connection_check_threshold'}
230 0 0 0 $driver eq 'SQLite' and $settings->{'database'}
0 0 0 $driver eq 'SQLite' and $settings->{'database'} and not $settings->{'dbname'}
254 0 0 0 lc $app_charset eq 'utf-8' and $auto_utf8
264 0 0 0 $param and not $settings->{'dbi_params'}{$param}

or 2 conditions

line l !l condition
36 0 0 $args{'arg'} || undef
37 0 0 $args{'settings'} || {}
38 0 0 $args{'logger'} || sub { }
39 0 0 $args{'hook_exec'} || sub { }
59 0 0 $arg || 'default connection'
71 0 0 $handles{$pid_tid}{$handle_key} || {}
251 0 0 $settings->{'charset'} || ''
304 0 0 $settings->{'log_queries'} || 0
316 0 0 $settings->{'handle_class'} || 'Dancer::Plugin::Database::Core::Handle'

or 3 conditions

line l !l&&r !l&&!r condition
147 0 0 0 $return_settings->{'driver'} or $return_settings->{'dsn'}
205 0 0 0 $settings->{'dsn'} or $settings->{'driver'}