Condition Coverage

lib/SQL/Shell.pm
Criterion Covered Total %
condition 30 100 30.0


and 2 conditions

line l !l condition
462 1 0 $uri_decode &&= 1
702 0 8 $self->{'commands'}{$regex}->($self, @args) && 1

and 3 conditions

line !l l&&!r l&&r condition
274 0 0 0 $settings->{'Verbose'} and defined $self->{'LogFH'}
290 0 0 0 $@ and not $settings->{'AutoCommit'}
387 0 0 0 defined $settings->{'LogLevel'} and $settings->{'LogLevel'} eq 'queries' || $settings->{'LogLevel'} eq 'all'
410 0 0 0 $rows == -1 and not $self->{'settings'}{'Verbose'}
464 1 0 0 $cf and not $ct
465 0 1 0 not $cf and $ct
466 1 0 0 $cf and $ct
473 0 0 0 $uri_decode and $self->{'settings'}{'Verbose'}
667 31 0 0 defined $settings->{'LogLevel'} and $settings->{'LogLevel'} eq 'all' || $settings->{'LogLevel'} eq 'commands'
720 0 23 8 $cmd =~ /\S/ and $valid
1005 2 0 0 defined $renderer and ref $renderer ne 'CODE'
1013 105 0 0 defined $_[0] and ref $_[0]
105 0 0 defined $_[0] and ref $_[0] and UNIVERSAL::isa($_[0], 'DBI::db')
0 0 0 defined $_[0] and ref $_[0] and UNIVERSAL::isa($_[0], 'DBI::db') and $_[0]->ping

or 2 conditions

line l !l condition
21 0 1 $ENV{'HISTSIZE'} || $ENV{'HISTFILESIZE'} || 50
95 0 1 $overrides->{'Interactive'} || 0
1 0 $overrides->{'Verbose'} || 0
0 1 _renderer($overrides->{'Renderer'}) || \&SQL::Shell::_render_box
0 1 _renderer($overrides->{'Logger'}) || \&SQL::Shell::_render_delimited
0 1 $overrides->{'Delimiter'} || "\t"
0 1 $overrides->{'Width'} || 80
0 1 $overrides->{'MaxHistory'} || 50
0 1 $overrides->{'AutoCommit'} || 0
0 1 $overrides->{'LongReadLen'} || 512
0 1 $overrides->{'MultiLine'} || 0
0 1 $overrides->{'GetHistory'} || sub { return \@history; }
0 1 $overrides->{'SetHistory'} || sub { my $n = shift(); @history = @$n; }
0 1 $overrides->{'AddHistory'} || sub { push @history, shift(); }
222 1 0 shift() || die('You must specify a file to load the history from')
241 1 0 shift() || die('You must specify a file to save the history to')
747 0 0 $table ||= '$table'
1006 0 0 $SQL::Shell::Renderers{$renderer} || die("Unrecognised renderer: $renderer\n")
1104 1 0 shift() || die('You must specify a file to save the history to')
1105 1 0 shift() || 50
1226 0 0 $options->{'Type'} || 'Hash'

or 3 conditions

line l !l&&r !l&&!r condition
242 0 0 1 shift() || $self->{'settings'}{'MaxHistory'}
387 0 0 0 $settings->{'LogLevel'} eq 'queries' || $settings->{'LogLevel'} eq 'all'
667 0 0 0 $settings->{'LogLevel'} eq 'all' || $settings->{'LogLevel'} eq 'commands'
983 0 0 0 $settings->{'LogLevel'} eq 'queries' or $settings->{'LogLevel'} eq 'all'