Condition Coverage

blib/lib/RapidApp/Module/StorCmp/Role/DbicLnk.pm
Criterion Covered Total %
condition 38 292 13.0


and 3 conditions

line !l l&&!r l&&r condition
165 8 0 0 $p->{'rs_path'} and $p->{'rs_method'}
252 0 0 92 not exists $opt{'cache'} and $self->app->rapidApp->use_cache
347 0 0 0 $rargs[0] and $rargs[1]
0 0 0 $rargs[0] and $rargs[1] and $rargs[1] eq 'store'
0 0 0 $rargs[0] and $rargs[1] and $rargs[1] eq 'store' and $crudI{$rargs[0]}
363 0 0 0 scalar @args > 0 and $self->ResultSource->has_column($newargs[0])
479 0 0 0 $info and $info->{'cond'}
484 0 0 0 scalar @pks == 1 and $cdta->{'self'}
0 0 0 scalar @pks == 1 and $cdta->{'self'} and $cdta->{'foreign'}
0 0 0 scalar @pks == 1 and $cdta->{'self'} and $cdta->{'foreign'} and $pks[0] eq $cdta->{'foreign'}
778 0 8 0 $params and $params->{'first_records_cond'}
834 0 0 0 $LRL == 80 and "$err" =~ /or LongReadLen too small/
854 17 0 29 (ref $h || '') eq 'HASH' and exists $h->{''}
0 0 29 (ref $h || '') eq 'HASH' and exists $h->{''} and exists $h->{'-as'}
891 0 8 0 $self->cache_total_count and exists $params->{'cached_total_count'}
1089 0 8 0 $params and $params->{'column_summaries'}
1096 0 0 0 $req_cols and @$req_cols > 0
1170 0 0 0 ref $col and ref $col eq 'HASH'
0 0 0 ref $col and ref $col eq 'HASH' and scalar keys %$col == 2
0 0 0 ref $col and ref $col eq 'HASH' and scalar keys %$col == 2 and $col->{''}
0 0 0 ref $col and ref $col eq 'HASH' and scalar keys %$col == 2 and $col->{''} and $col->{'-as'}
1186 0 0 0 ref $col and ref $col eq 'SCALAR'
1375 0 3 0 ref $id_in and !ref($id_in) eq 'ARRAY'
1409 0 0 0 ref $sel eq 'ARRAY' and scalar @$sel == 1
0 0 0 ref $sel eq 'ARRAY' and scalar @$sel == 1 and ref $sel->[0] eq 'ARRAY'
1431 8 0 0 defined $params->{'qs_query'} and $params->{'qs_query'} eq ''
1473 0 0 0 exists $cnf->{'quick_search_exact_only'} and jstrue($cnf->{'quick_search_exact_only'})
1587 0 0 0 exists $needed_selects{$_} and delete $needed_selects{$_}
1593 0 0 0 push @$cur_select, $needed_selects{$_}{'select'} and push @$cur_as, $needed_selects{$_}{'field'}
1627 0 0 0 defined $_ && exists $map{$_}
1683 0 0 0 $val and ref $val
1765 0 0 8 $val and ref $val eq 'HASH'
1783 0 0 0 ref $multi eq 'HASH' and keys %$multi == 1
1799 0 0 0 ref $cond eq 'HASH' && exists $cond->{'is'}
1814 0 0 0 ref $dbfName eq 'HASH' and exists $dbfName->{'-as'}
0 0 0 ref $dbfName eq 'HASH' and exists $dbfName->{'-as'} and exists $dbfName->{''}
1948 0 0 0 (ref $dbfName || '') eq 'HASH' && $dbfName->{'-as'} && $dbfName->{''}
1967 0 0 0 $column->{'multifilter_type'} and $column->{'multifilter_type'} =~ /^date/
2057 0 0 0 $month > 0 and $month <= 3
0 0 0 $month > 3 and $month <= 6
0 0 0 $month > 6 and $month <= 9
2112 0 0 0 scalar @parts > 1 and length $parts[0] > 0
2126 0 0 0 $dt and $sign eq '-' || $sign eq '+'
2154 0 0 0 $num and $unit
2443 0 0 0 exists $chg->{$_} and delete $chg->{$_}
2521 3 0 0 $rel and not $UpdRow
3 0 0 $rel and not $UpdRow and $ucrls{$rel}
0 0 0 $rel and not $UpdRow and $ucrls{$rel} and $_{'depth'} == 1
2538 0 0 0 $_ eq $alias->{$_} and delete $alias->{$_}
2574 1 2 0 not $Source->has_column($_) and $Source->has_relationship($_)
3 0 0 not $Source->has_column($_) and $Source->has_relationship($_) and $relcol_updates->{$_} = delete $update{$_}
2697 0 0 0 exists $$data{$_->{'orig_colname'}} and $create_hash->{$rel}{$_->{'local_colname'}} = $$data{$_->{'orig_colname'}}
2744 0 0 0 $newdata and $newdata->{'results'}
2773 0 0 0 $rel =~ /^[a-zA-Z0-9\-\_]+$/ and $Row->can($rel)

or 2 conditions

line l !l condition
122 0 0 $self->DataStore->get_extconfig_param('baseParams') || {}
482 0 0 'RapidApp::DBIC::Component::TableSpec'->parse_relationship_cond($info->{'cond'}) || {}
832 0 0 $dbh->{'LongReadLen'} || 80
854 29 17 ref $h || ''
884 8 0 shift() || {}
1030 8 0 $self->c->stash->{'query_time'} || (return undef)
1119 0 0 $self->{'_get_col_summary_select_msg'} || 'BadFunc!'
1287 0 0 shift() || {}
1289 0 0 $self->c->stash->{'dbic_render_colnames'} || {}
1310 0 8 shift() || 'columns'
1475 0 0 $cnf->{'broad_data_type'} || 'text'
1532 0 0 $self->multifilter_to_dbf($multifilter, $attr->{'join'}) || {}
1779 0 0 shift() || {}
1801 0 0 $self->get_column($f) || {}
1943 0 0 &try(sub { $self->get_column($field); } ) || {}
2700 0 0 delete $create_hash->{''} || {}
2865 40 11 shift() || undef

or 3 conditions

line l !l&&r !l&&!r condition
353 0 0 0 lc $rargs[1] eq 'rel' or lc $rargs[1] eq 'rs'
378 0 0 0 exists $self->modules_obj->{$key} or $self->has_action($key)
384 0 0 0 $rest_key_column || $self->record_pk
678 8 0 0 shift() || $self->c->req->params
702 8 0 0 shift() || $self->c->req->params
1201 8 0 0 shift() || $self->_ResultSet
1202 8 0 0 shift() || $self->c->req->params
1293 0 0 0 $h->{$name} || $self->resolve_dbic_colname($name, $join, $get_render_col)
1309 0 8 0 shift() || $self->c->req->params
1370 8 0 0 shift() || $self->_ResultSet
1371 8 0 0 shift() || $self->c->req->params
1395 8 0 0 shift() || $self->_ResultSet
1396 8 0 0 shift() || $self->c->req->params
1428 8 0 0 shift() || $self->_ResultSet
1429 8 0 0 shift() || $self->c->req->params
1439 0 0 0 $params->{'quicksearch_mode'} || $self->quicksearch_mode
1517 8 0 0 shift() || $self->_ResultSet
1518 8 0 0 shift() || $self->c->req->params
1789 0 0 0 $f eq '-and' or $f eq '-or'
1802 0 0 0 $column->{'query_search_use_column'} || $f
1803 0 0 0 $column->{'query_id_use_column'} || $f
2126 0 0 0 $sign eq '-' || $sign eq '+'
2143 0 0 0 $unit eq 'w' or $unit eq 'week'
0 0 0 $unit eq 'w' or $unit eq 'week' or $unit eq 'weeks'
0 0 0 $unit eq 'w' or $unit eq 'week' or $unit eq 'weeks' or $unit eq 'wk'
0 0 0 $unit eq 'w' or $unit eq 'week' or $unit eq 'weeks' or $unit eq 'wk' or $unit eq 'wks'
2149 0 0 0 $unit eq 'q' or $unit eq 'quarter'
0 0 0 $unit eq 'q' or $unit eq 'quarter' or $unit eq 'quarters'
0 0 0 $unit eq 'q' or $unit eq 'quarter' or $unit eq 'quarters' or $unit eq 'qtr'
0 0 0 $unit eq 'q' or $unit eq 'quarter' or $unit eq 'quarters' or $unit eq 'qtr' or $unit eq 'qtrs'
2504 0 3 0 $_{'return'} || $BaseRow
2590 3 0 0 defined $update{$col} or defined $current{$col}