Condition Coverage

blib/lib/RapidApp/DBIC/Component/TableSpec.pm
Criterion Covered Total %
condition 85 205 41.4


and 2 conditions

line l !l condition
846 681 0 ref $_ and die join(' ', 'TableSpec_set_conf( column_properties => %cnf ):', 'found ref in key position:', Dumper($_))
858 0 0 warn join(' ', "Ignoring config for unknown column name '${col}'", "in $self TableSpec config\n") and next

and 3 conditions

line !l l&&!r l&&r condition
217 56 0 0 defined $self->TableSpec_cnf && defined $self->TableSpec_cnf->{'apply_TableSpec_timestamp'}
345 107 0 0 $data->{'singleIconCls'} and not $data->{'iconCls'}
393 258 0 0 $self->result_source_instance->can('is_virtual') && $self->result_source_instance->is_virtual
436 112 489 71 $is_local and $self->has_relationship($col)
601 0 71 $is_local and $self->has_relationship($col) and $set->{'priority_rel_columns'}
443 489 183 0 not $is_local and $set->{'no_priority_rel_column'}
183 0 0 not $is_local and $set->{'no_priority_rel_column'} and $set->{'no_priority_rel_column'}{$col}
0 0 0 not $is_local and $set->{'no_priority_rel_column'} and $set->{'no_priority_rel_column'}{$col} and $is_phy
464 0 0 67 $cond_data->{'foreign'} and $cond_data->{'self'}
497 67 0 0 not defined $display_column and ref $display_columns eq 'ARRAY'
67 0 0 not defined $display_column and ref $display_columns eq 'ARRAY' and @$display_columns > 0
506 0 0 67 not defined $display_columns and defined $display_column
568 250 250 0 defined $cols->{$col}{'profiles'} and not ref $cols->{$col}{'profiles'}
612 485 0 15 $info->{'extra'} && $info->{'extra'}{'unsigned'}
624 0 0 12 $p and $p > 0
645 500 0 0 $info->{'data_type'} eq 'enum' and $info->{'extra'}
0 0 0 $info->{'data_type'} eq 'enum' and $info->{'extra'} and $info->{'extra'}{'list'}
701 329 49 207 $accessor eq 'filter' and $self->TableSpec_cnf->{'priority_rel_columns'}
207 0 0 $self->TableSpec_cnf->{'no_priority_rel_column'} && $self->TableSpec_cnf->{'no_priority_rel_column'}{$rel}
49 0 207 $accessor eq 'filter' and $self->TableSpec_cnf->{'priority_rel_columns'} and not $self->TableSpec_cnf->{'no_priority_rel_column'} && $self->TableSpec_cnf->{'no_priority_rel_column'}{$rel}
49 36 171 $accessor eq 'filter' and $self->TableSpec_cnf->{'priority_rel_columns'} and not $self->TableSpec_cnf->{'no_priority_rel_column'} && $self->TableSpec_cnf->{'no_priority_rel_column'}{$rel} and not $pri_cols{$rel}
706 0 0 191 $cond_info->{'self'} and $cond_info->{'foreign'}
767 0 0 0 ref $_[0] eq 'HASH' and scalar @_ == 1
827 0 0 58 ref $_[0] eq 'HASH' and scalar @_ == 1
920 1838 84 0 wantarray and ref $value
1004 0 0 0 ref $cond eq 'HASH' and scalar keys %$cond == 1
1011 0 0 0 defined $col and $side eq 'foreign'
1033 0 0 657 ref $cond eq 'HASH' and scalar keys %$cond == 1
1105 0 0 0 $display_col and $relOld || $relNew
1112 0 0 0 exists $old{$col} and $relOld
1113 0 0 0 exists $new{$col} and $relNew
1125 0 0 0 $col_props->{$_} && $col_props->{$_}{'header'}
1141 183 0 0 $rest_key_col and $rest_key_col ne ''
1143 0 0 183 $pri[0] and scalar @pri == 1
1218 0 488 0 !ref($arg) && $arg->can('table')

or 2 conditions

line l !l condition
297 313 0 $$data_types{$info->{'data_type'}} || ['text']
330 107 0 shift() || {}
361 0 107 $data->{'row_display'} || sub { my $record = $_; my $title = join('/', map({'' unless $record->{$_};} @display_columns)); $title = sprintf('%.13s', $title) . '...' if length $title > 13; return $title; }
400 107 0 shift() || {}
486 60 7 $self->TableSpec_related_get_set_conf($col, 'auto_editor_type') || 'combo'
487 58 9 $self->TableSpec_related_get_set_conf($col, 'auto_editor_params') || {}
488 0 67 $self->TableSpec_related_get_set_conf($col, 'auto_editor_win_params') || {}
490 27 40 $cols->{$col}{'auto_editor_params'} || {}
535 0 105 $self->TableSpec_related_get_set_conf($col, 'open_url_multi_rs_join_name') || 'me'
539 53 52 $cols->{$col}{'profiles'} ||= []
554 500 0 $$data_types{$info->{'data_type'}} || ['text']
585 0 500 ref $info->{'default_value'} || ''
637 182 171 $cols->{$col}{'extra_properties'} || {}
852 53 54 $col_props ||= {}
876 0 0 $self->TableSpec_get_conf('columns') || {}
894 1922 0 shift() || (return undef)
950 822 0 shift() || (return undef)
951 822 0 $self->relationship_info($rel) || (return undef)
964 0 0 shift() || (return undef)
965 0 0 shift() || (return undef)
967 0 0 $self->TableSpec_related_class($rel) || (return undef)
977 822 0 shift() || (return undef)
978 822 0 shift() || (return undef)
980 822 0 $self->TableSpec_related_class($rel) || (return undef)
993 1126 0 shift() || (return undef)
1183 0 0 shift() || '<span>open</span>'
1220 0 488 ref $table || ''

or 3 conditions

line l !l&&r !l&&!r condition
346 105 2 0 $defaults{'iconCls'} || $data->{'iconCls'} || $defs_i
347 105 2 0 $data->{'multiIconCls'} || $defm_i
348 0 107 0 $data->{'singleIconCls'} || $defaults{'iconCls'}
349 107 0 0 $data->{'title'} || $table
350 107 0 0 $data->{'title_multi'} || $defaults{'title'}
461 7 60 105 $info->{'attrs'}{'accessor'} eq 'single' or $info->{'attrs'}{'accessor'} eq 'filter'
489 27 40 0 $cols->{$col}{'auto_editor_type'} || $auto_editor_type
851 159 53 216 $col_props ||= $self->TableSpec_cnf->{$_}
895 1126 796 0 shift() || $self->get_built_Cnf
921 0 0 0 ref $value eq 'ARRAY' or ref $value eq 'HASH'
942 0 84 0 shift() || $self->get_built_Cnf
1068 0 0 0 $self->get_from_storage || $self
1086 0 0 0 defined $new{$col} or defined $old{$col}
1105 0 0 0 $relOld || $relNew