Condition Coverage

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

line%coveragecondition
43650
Adec
00
11
get_params(undef, \@args) // {}
466100
ABdec
0X0
100
111
&blessed($p->{'databases'}[$i]) and $p->{'databases'}[$i]->isa("Database::Abstraction")
47667
ABdec
000
011
1X1
$p->{'databases'}[0]{'id'} // $p->{'join_column'}
488100
Adec
00
11
$p->{'filters'} // {}
100
Adec
00
11
$p->{'join_map'} // {}
89775
ABCdec
0XX0
10X0
1100
1111
$local_jc and $col eq $local_jc and $col ne $join_col
956100
Adec
00
11
$self->{'_dbs'}[$i]->schema // {}
95867
ABdec
0X0
100
111
$local_jc and $local_jc ne $self->{'_join_col'}
119067
ABdec
0X0
100
111
@args and not ref $args[0]
119950
Adec
00
11
(@args ? get_params(undef, @args) : {}) // {}
120967
ABdec
000
011
1X1
$db //= $p->{'database'}
121167
ABdec
0X0
100
111
&blessed($db) and $db->isa("Database::Abstraction")
121567
ABdec
000
011
1X1
$p->{'join_column'} // $self->{'_join_col'}
1233100
ABdec
0X0
100
111
$local_jc ne $self->{'_join_col'} and $col eq $local_jc
1329100
ABdec
0X0
100
111
defined $col and $col eq $self->{'_join_col'}
1331100
ABdec
0X0
100
111
defined $col and length $col
1469100
ABdec
000
011
1X1
%{$self->{'_join_map'};} or %{$self->{'_filters'};}
149867
ABdec
000
011
1X1
$key //= $self->{'_join_col'}
150067
ABdec
0X0
100
111
@args == 1 and not ref $args[0]
150150
Adec
00
11
get_params(undef, @args) // {}
1528100
ABdec
000
011
1X1
$self->{'_join_map'}{$i} // $join_col
1543100
ABdec
0X0
100
111
$local_jc ne $join_col and $col eq $local_jc
157767
ABdec
000
011
1X1
$self->{'_join_map'}{$i} // $join_col
160267
ABdec
000
011
1X1
$self->{'_join_map'}{$db_idx} // $self->{'_join_col'}
1605100
Adec
00
11
$rows //= []
1650100
Adec
00
11
$self->{'_filters'}{$i} // {}
1676100
ABdec
000
011
1X1
$had_criteria[$i] or $join_type eq "inner"
1700100
Adec
00
11
$indexed[0]{$key} // [{}]
170767
ABdec
0X0
100
111
$sec_arr and @{$sec_arr;}
171767
ABdec
0X0
100
111
$local_jc && $local_jc ne $join_col
1719100
ABdec
0X0
100
111
$rename and $k eq $local_jc
174775
ABCdec
0XX0
10X0
1100
1111
exists $merged{$col} and ref $merged{$col} eq "HASH" and ref $extra->{$col} eq "HASH"
1766100
ABdec
0X0
100
111
$i18n and $i18n->can("translate")
177167
ABdec
000
011
1X1
$MESSAGES{$key} // sprintf($MESSAGES{'error_unknown_message'}, $key)