Condition Coverage

blib/lib/RapidApp/TableSpec/Role/DBIC.pm
Criterion Covered Total %
condition 65 147 44.2


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)
1007 74 0 10 $relspec_prefix and $relspec_prefix ne ''
1028 0 0 84 $class->can('TableSpec_get_conf') and $class->TableSpec_has_conf('related_column_property_transforms')
1204 0 0 46 $merge_join and $join
1510 0 0 0 $cnf and $cnf->{'virtualized_single_rel'}
1698 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'}
1737 0 0 82 $cinfo and defined $cinfo->{'is_nullable'}
0 0 82 $cinfo and defined $cinfo->{'is_nullable'} and not exists $conf->{'editor'}{'allowBlank'}
1748 0 82 0 $cinfo and exists $cinfo->{'default_value'}
1887 101 0 0 defined $rel_data->{'attrs'}{'join'} and ref $rel_data->{'attrs'}{'join'} ne 'ARRAY'
1923 0 98 3 $rSelfCol and $rSelfCol ne ($orgnCol || '')
1932 0 0 101 $use_rest and $orgnCol
0 5 96 $use_rest and $orgnCol and $open_url
1970 5 0 0 $attr->{'join'}[0] and $join_name eq 'me'
2149 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 32264 0 shift() || die('full_colspec is required')
603 32264 0 shift() || die('col is required')
820 302 874 /\./ or $need_base = 0
907 0 0 $self->column_name_relationship_map->{$col} || ''
937 0 3 $self->column_name_relationship_map->{$col} || ''
964 0 0 shift() || (return undef)
965 0 0 shift() || ''
968 0 0 shift @parts || (return $Row)
1021 2 82 $self->updatable_colspec->get_subspec($rel) || []
1022 0 84 $self->creatable_colspec->get_subspec($rel) || []
1023 43 41 $self->no_column_colspec->get_subspec($rel) || []
1040 0 84 $params{'column_property_transforms'}{'header'} ||= sub { $_ ? "$_ ($relspec_prefix)" : $_; }
1187 0 46 $get_render_col ||= 0
1429 0 46 shift() || 0
1479 7 0 $self->ResultClass->column_info($fieldName) || {}
1495 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}; }
1729 0 82 $conf->{'editor'} || {}
1730 82 0 $conf->{'auto_editor_params'} || {}
1753 82 0 $conf->{'auto_editor_params'} || {}
1795 0 0 $conf->{'auto_editor_params'}{'onBUILD'} || sub { }
1919 0 101 $conf->{'required_fetch_columns'} ||= []
1923 101 0 $orgnCol || ''
1966 0 5 $attr->{'join'} ||= []
2110 0 1 $conf->{'editor'} || {}
2145 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 2318 1044 31220 $self->{'_colspec_test_cache'}{$colspec_key} //= $self->_colspec_test(@args)
974 0 0 0 $info->{'attrs'}{'accessor'} eq 'single' or $info->{'attrs'}{'accessor'} eq 'filter'
1058 0 0 0 $self->related_TableSpec->{$rel} || $self->add_related_TableSpec(@_)
1218 25 4 0 $cond_data->{'function'} || $self->multi_rel_columns_indx->{$fieldName}
1626 82 0 0 $relconf->{'profiles'} || $conf->{'profiles'}
1757 10 0 72 $aet eq 'combo' or $aet eq 'dropdown'
1929 0 0 101 $rel_data->{'attrs'}{'allow_rel_rest_origin'} // &try(sub { $rel_data->{'class'}->TableSpec_get_conf('allow_rel_rest_origin'); } )