Branch Coverage

File:blib/lib/Database/Join.pm
Coverage:81.7%

line%coveragebranch
1020100TFunless @{$p->{'databases'};}
1035100TFunless &blessed($p->{'databases'}[$i]) and $p->{'databases'}[$i]->can("selectall_arrayref") and $p->{'databases'}[$i]->can("columns")
1080100TFif (my $mf = $p->{'mandatory_filters'})
1088100TFunless ref $pred eq "HASH" and exists $pred->{'col'} and exists $pred->{'op'} and exists $pred->{'val'}
1090100TFunless exists $self->{'_col_db'}{$pred->{'col'}}
1092100TFunless $MANDATORY_FILTER_OPS{$pred->{'op'}}
1097100TFif ($p{'op'} eq "like")
109950TF$_ eq '_' ? :
100TF$_ eq '%' ? :
1113100TFif (my $bc = $p->{'base_criteria'})
1116100TFunless %{$partitioned->[$i];}
1127100TFif (my $log = $self->{'_logger'})
1132100TFif (my $rc = $p->{'remove_columns'})
1989100TFwantarray ? :
2121100TFunless $self->{'_backend'} eq "array"
2247100TFif exists $p->{'join'}
2255100TFif ($backend eq 'array') { }
2262100TFif (my $having = $spec->{'having'})
2341100TFunless ref $cb eq "CODE"
2422100TFif $self->{'_backend'} eq "array"
2427100TFunless $self->_cache_fresh
2434100TFunless ($cache->{'_dj_built'})
2488100TFif $self->{'_col_cache'}
2500100TFif $local_jc and $col eq $local_jc and $col ne $join_col
2503100TFif $seen{$pub}++
2504100TFif $self->{'_removed_cols'}{$pub}
2561100TFif $self->{'_schema_cache'}
2572100TFif (not $skip_jc || %{$renames;}) { }
2577100TFif $skip_jc and $col eq $local_jc
2584100TFif %{$self->{'_removed_cols'};}
2639100TFif defined $ts
2698100TFunless defined $logger
270250TFunless &Scalar::Util::blessed($logger)
2853100TFif (@args and not ref $args[0]) { }
50TFelsif (@args) { }
2855100TFunless defined $args[0] and grep {$args[0] eq $_;} @_ADD_DB_KEYS
2862100TF@args ? :
2878100TFunless &blessed($db) and $db->can("selectall_arrayref") and $db->can("columns")
2885100TFif $p->{'join_column'}
2887100TFif $p->{'filter'}
2893100TFunless $col_presence{$local_jc}
2907100TFif $local_jc ne $self->{'_join_col'} and $col eq $local_jc
2910100TFif (defined $prefix and exists $self->{'_col_db'}{$col} and $col ne $self->{'_join_col'}) { }
2919100TFif $self->{'_removed_cols'}{$pub}
2931100TFif (my $old = delete $self->{'_sqlite_cache'})
293350TFif $old->{'dbh'}
2937100TFif (my $log = $self->{'_logger'})
2942100TFif (my $rc = $p->{'remove_columns'})
3025100TFunless defined $col and length $col
3030100TFif $col eq $self->{'_join_col'}
3191100TFif substr($col, 0, 1) eq "_"
3195100TFunless defined $db_idx
3200100TFif (%{$self->{'_join_map'};} or %{$self->{'_filters'};})
3207100TFif wantarray
3208100TF@{$rows;} ? :
3220100TFif (my $cache = delete $self->{'_sqlite_cache'})
322250TFif $cache->{'dbh'}
3452100TFif ($pushdown)
3454100TFif ref $rows eq "ARRAY"
347750TF&blessed($db) ? :
3479100TF$da_select && $db_select && $db_select == $da_select ? :
526550TFif $op eq "eq"
52660TFif $op eq "ne"
52670TFif $op eq "lt"
52680TFif $op eq "lte"
52690TFif $op eq "gt"
52700TFif $op eq "gte"
52710TFif $op eq "like"
52720TFif $op eq "contains"
528650TFunless defined $rv
5287100TFunless $rv eq $val
100TFif ($op eq 'eq') { }
100TFelsif ($op eq 'ne') { }
50TFelsif ($op eq 'lt') { }
50TFelsif ($op eq 'lte') { }
100TFelsif ($op eq 'gt') { }
50TFelsif ($op eq 'gte') { }
100TFelsif ($op eq 'contains') { }
50TFelsif ($op eq 'like') { }
5288100TFunless $rv ne $val
52890TFunless $rv lt $val
52900TFunless $rv le $val
5291100TFunless $rv gt $val
52920TFunless $rv ge $val
5293100TFunless index($rv, $val) != -1
5296100TFunless $rv =~ /$pred->{'_re'}/
5315100TFif ($columns and @{$columns;}) { }
5319100TFif $seen{$key}++
532550TF@{$rows;} ? :
532850TFif $seen{$key}++
5368100TFunless $criteria and %{$criteria;}
5373100TFref $criteria->{$_} eq 'HASH' ? :
5386100TFunless $filters and %{$filters;}