Branch Coverage

blib/lib/DBIx/Class/ResultSource/RowParser/Util.pm
Criterion Covered Total %
branch 77 80 96.2


line true false branch
50 550 561 if ($_ =~ /^ ([^\.]+) \. (.+) /x) { }
65 104 26 if (keys %$my_cols)
72 90 14 if ($args->{'prune_null_branches'}) { }
96 172 26 if keys %$my_cols
98 36 162 if ($args->{'hri_style'}) { }
99 24 12 if $me_struct
105 100 62 @relperl ? :
117 159 15 if (scalar @{$args->{'collapse_map'}{'-identifying_columns'};}) { }
15 0 elsif (my(@variants) = @{$args->{'collapse_map'}{'-identifying_columns_variants'};}) { }
158 159 15 unless $variant_idcols
168 165 9 $args->{'prune_null_branches'} ? :
170 9 29 $stats->{'nullchecks'}{'mandatory'}{$_} ? :
189 133 41 unless $stats->{'nullchecks'}{'from_first_encounter'}
207 113 61 unless $stats->{'nullchecks'}{'all_or_nothing'}
228 170 4 if $null_checks
332 212 329 if (not $args->{'-chain_is_optional'} ||= $args->{'collapse_map'}{'-is_optional'}) { }
68 261 elsif (keys %$node_specific_ids > 1) { }
342 1824 1687 if ($_ =~ /^ ([^\.]+) \. (.+) /x) { }
351 177 364 if ($args->{'hri_style'})
356 484 57 if keys %$my_cols
359 364 177 unless $args->{'hri_style'}
371 174 367 if ($cur_node_idx == 0) { }
382 129 238 $args->{'hri_style'} ? :
385 151 216 if ($args->{'collapse_map'}{'-is_single'}) { }
415 202 165 unless $args->{'-parent_id_path'}
423 253 114 if ($relinfo->{'-is_optional'})
434 0 253 unless defined $first_distinct_child_idcol
437 230 23 if ($args->{'prune_null_branches'}) { }
445 92 138 $args->{'hri_style'} ? :
19 211 $args->{'hri_style'} && $relinfo->{'-is_single'} ? :
463 90 127 if (not values %$rel_cols and @{[] unless $args->{'-parent_id_path'};} and (my(@nullable_portion) = grep({not $args->{'-mandatory_ids'}{$_};} @{$$args{'-parent_id_path'};}, (sort {$a <=> $b;} keys %$node_specific_ids))) > 1)
471 8 209 unless $args->{'-parent_id_path'}
490 43 22 if keys %$a_o_n_set == @nullable_portion
492 0 90 unless $args->{'-all_or_nothing_sets'}
47 43 unless grep {my $a_o_n_set = $_; not grep({not $a_o_n_set->{$_};} @nullable_portion) if keys %$a_o_n_set == @nullable_portion;} @{[] unless $args->{'-all_or_nothing_sets'};}
511 159 15 keys %{$$args{'-mandatory_ids'};} ? :
61 113 @{$args->{'-all_or_nothing_sets'};} ? :
41 133 @{$args->{'-null_from'};} ? :
367 174 $cur_node_idx != 0 ? :
523 1678 561 $is_collapsing ? :