Condition Coverage

blib/lib/App/Sqitch/Engine/clickhouse.pm
Criterion Covered Total %
condition 67 87 77.0


and 3 conditions

line !l l&&!r l&&r condition
33 8 11 8 not $uri->host and my $host = $ENV{'CLICKHOUSE_HOST'} || $cfg->{'host'}
36 8 10 9 not $uri->dbname and my $db = $cfg->{'database'}
42 3 23 1 not $uri->_port and ($cfg->{'port'} || 0) == 9440
87 1 1 5 my $mode = $tls->{'verificationMode'} and not $uri->query_param("SSLMode")
135 13 9 36 @{$n;} == 1 and $n->[0]{'type'} eq "t"
357 22 0 0 -f $path and -x $path
389 3 2 1 $lim and $off
403 0 6 2 @{$list;} and $list->[0] eq ""
420 2 0 2 $DBI::state and $DBI::state eq "HY000"
448 3 1 2 $DBI::state && $DBI::state eq 'HY000'
452 1 1 1 $DBI::state && $DBI::state eq '42703'
477 2 0 1 $self->_no_table_error and not $self->initialized

or 2 conditions

line l !l condition
42 1 23 $cfg->{'port'} || 0
46 2 23 $cfg->{'port'} || 0
13 11 $uri->host || ''
152 25 2 shift() || (return 0)
154 4 1 $val != 0 || 0
156 5 9 $val eq 'true' || $val eq 'yes' || $val eq 'on' || 0
182 4 5 $cfg->{'host'} || 'localhost'
186 13 1 $c->{'name'} || ''
314 1 9 $self->_clickcnf->{'port'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
33 1 7 11 $ENV{'CLICKHOUSE_HOST'} || $cfg->{'host'}
46 2 1 24 $cfg->{'secure'} or ($cfg->{'port'} || 0) == 9440
3 1 23 $cfg->{'secure'} or ($cfg->{'port'} || 0) == 9440 or ($uri->host || '') =~ /\.clickhouse(?:-staging)?\.cloud\z/
91 1 1 3 $mode eq "strict" or $mode eq "once"
182 6 9 0 $host ||= $cfg->{'host'} || 'localhost'
220 0 6 0 $ENV{'CLICKHOUSE_HOST'} || $self->SUPER::uri->host
334 1 1 6 $http_port == 8443 or $http_port == 443
469 0 0 0 $project || $self->plan->project
488 0 0 0 $tags ||= $self->_log_tags_param($change)
489 0 0 0 $requires ||= $self->_log_requires_param($change)
490 0 0 0 $conflicts ||= $self->_log_conflicts_param($change)