Condition Coverage

blib/lib/RapidApp/TableSpec/Role/DBIC.pm
Criterion Covered Total %
condition 65 151 43.0


and 2 conditions

line l !l condition
91 335 0 /$sep/ and die "Fatal: ColSpec '${_}' is invalid because it contains the relation separater string '${sep}'"

and 3 conditions

line !l l&&!r l&&r condition
66 0 0 751 ref $v && ref $v eq 'ARRAY' && !&List::Util::first(sub { not defined $_ unless ref $_; } , @$v)
1101 74 0 10 $relspec_prefix and $relspec_prefix ne ''
1122 0 0 84 $class->can('TableSpec_get_conf') and $class->TableSpec_has_conf('related_column_property_transforms')
1298 0 0 46 $merge_join and $join
1604 0 0 0 $cnf and $cnf->{'virtualized_single_rel'}
1792 0 0 82 $use_rest and $cond_data
0 0 82 $use_rest and $cond_data and $rel_rest_key
0 2 80 $use_rest and $cond_data and $rel_rest_key and $conf->{'open_url'}
1831 0 0 82 $cinfo and defined $cinfo->{'is_nullable'}
0 0 82 $cinfo and defined $cinfo->{'is_nullable'} and not exists $conf->{'editor'}{'allowBlank'}
1842 0 82 0 $cinfo and exists $cinfo->{'default_value'}
1981 101 0 0 defined $rel_data->{'attrs'}{'join'} and ref $rel_data->{'attrs'}{'join'} ne 'ARRAY'
2017 0 98 3 $rSelfCol and $rSelfCol ne ($orgnCol || '')
2026 0 0 101 $use_rest and $orgnCol
0 5 96 $use_rest and $orgnCol and $open_url
2064 5 0 0 $attr->{'join'}[0] and $join_name eq 'me'
2243 0 0 0 $use_rest and $orgnCol

or 2 conditions

line l !l condition
158 176 0 $self->get_Cnf('relationship_column_names') || (return)
302 10 123 $opt{'allow_edit'} //= \1
303 5 63 $opt{'allow_add'} //= \1
575 472 1211 $self->colspec_to_colspec_test($colspec, $test_spec) || (next)
602 8183 0 shift() || die('full_colspec is required')
603 8183 0 shift() || die('col is required')
803 0 0 $relmap{$rel} ||= []
835 82 84 $relmap{$rel} ||= []
914 0 0 /\./ or $need_base = 0
1001 0 0 $self->column_name_relationship_map->{$col} || ''
1031 0 3 $self->column_name_relationship_map->{$col} || ''
1058 0 0 shift() || (return undef)
1059 0 0 shift() || ''
1062 0 0 shift @parts || (return $Row)
1115 2 82 $self->updatable_colspec->get_subspec($rel) || []
1116 0 84 $self->creatable_colspec->get_subspec($rel) || []
1117 43 41 $self->no_column_colspec->get_subspec($rel) || []
1134 0 84 $params{'column_property_transforms'}{'header'} ||= sub { $_ ? "$_ ($relspec_prefix)" : $_; }
1281 0 46 $get_render_col ||= 0
1523 0 46 shift() || 0
1573 7 0 $self->ResultClass->column_info($fieldName) || {}
1589 0 7 $info->{'function'} || sub { my($self, $rel, $col, $join, $cond_data2, $name2) = @_; my $sql = $info->{'sql'} || 'SELECT(NULL)'; $sql = $info->{'sql'}->($self->ResultClass, $col) if ref $sql eq 'CODE'; $sql =~ s/self\./$rel./g; $sql =~ s/\`self\`\./`$rel`./g; return {'', \"($sql)", '-as', $col}; }
1823 0 82 $conf->{'editor'} || {}
1824 82 0 $conf->{'auto_editor_params'} || {}
1847 82 0 $conf->{'auto_editor_params'} || {}
1889 0 0 $conf->{'auto_editor_params'}{'onBUILD'} || sub { }
2013 0 101 $conf->{'required_fetch_columns'} ||= []
2017 101 0 $orgnCol || ''
2060 0 5 $attr->{'join'} ||= []
2204 0 1 $conf->{'editor'} || {}
2239 0 0 $conf->{'required_fetch_columns'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
306 137 3 641 $editable or $creatable
379 2 366 0 shift() || $self->ResultSource
411 0 0 0 $_ eq 'single' or $_ eq 'multi'
420 0 1 0 $macros{'?'} or @matching_rels > 0
1 0 0 $macros{'?'} or @matching_rels > 0 or scalar @rel_list == 0
674 1077 649 7534 $self->{'_colspec_test_cache'}{$colspec_key} //= $self->_colspec_test(@args)
1068 0 0 0 $info->{'attrs'}{'accessor'} eq 'single' or $info->{'attrs'}{'accessor'} eq 'filter'
1152 0 0 0 $self->related_TableSpec->{$rel} || $self->add_related_TableSpec(@_)
1312 25 4 0 $cond_data->{'function'} || $self->multi_rel_columns_indx->{$fieldName}
1720 82 0 0 $relconf->{'profiles'} || $conf->{'profiles'}
1851 10 0 72 $aet eq 'combo' or $aet eq 'dropdown'
2023 0 0 101 $rel_data->{'attrs'}{'allow_rel_rest_origin'} // &try(sub { $rel_data->{'class'}->TableSpec_get_conf('allow_rel_rest_origin'); } )