Condition Coverage

blib/lib/DBIx/DBO/Row.pm
Criterion Covered Total %
condition 47 81 58.0


and 2 conditions

line l !l condition
271 13 13 $$me->{'array'} &&= \@{$$$me{"array"};}

and 3 conditions

line !l l&&!r l&&r condition
62 2 8 23 @args == 1 && _isa($args[0], 'DBIx::DBO::Query')
143 2 0 19 $col->[0] == $fld and exists $fld->{'Column_Idx'}{$col->[1]}
150 2 0 2 not defined $fld->[1] and @{$fld->[0];} == 1
2 1 1 not defined $fld->[1] and @{$fld->[0];} == 1 and $col == $fld->[0][0]
171 2 1 0 _isa($fld, "DBIx::DBO::Table") and exists $fld->{'Column_Idx'}{$col}
2 0 1 _isa($fld, "DBIx::DBO::Query") and eval { do { $fld->column($col) } }
1 1 0 ref $fld eq "ARRAY" and exists $fld->[2]{'AS'}
1 0 0 ref $fld eq "ARRAY" and exists $fld->[2]{'AS'} and $col eq $fld->[2]{'AS'}
180 13 0 0 $_check_aliases == 1 and $column = $me->_check_alias($col)
184 0 0 0 $_check_aliases == 2 and $column = $me->_check_alias($col)
192 0 0 0 ref $fld eq "ARRAY" and exists $fld->[2]{'AS'}
0 0 0 ref $fld eq "ARRAY" and exists $fld->[2]{'AS'} and $col eq $fld->[2]{'AS'}
255 0 0 9 $sth and $sth->execute(@bind)
274 52 0 34 defined $_ and $_ == $me
283 7 3 16 $$me->{'Parent'}{'Config'} and %{$$me->{'Parent'}{'Config'};}
293 258 28 2 _isa($val, "DBIx::DBO::Column") and $val->[0] == $$me->{'Parent'}
316 4 0 0 $me->config('LimitRowUpdate') && $me->tables == 1
320 0 0 4 $rv and $rv > 0
342 1 0 0 $me->config('LimitRowDelete') && $me->tables == 1

or 2 conditions

line l !l condition
128 6 5 $$me->{'Columns'} //= [@{$me->_build_data->{'select'};} ? map({_isa($_, "DBIx::DBO::Table", "DBIx::DBO::Query") ? $_->columns : $me->_build_col_val_name(@$_);} @{$me->_build_data->{"select"};}) : map({$_->columns;} $me->tables)]
171 0 1 $$me->{'Column'}{$col} //= bless([$me, $col], "DBIx::DBO::Column")
192 0 0 $$me->{'Column'}{$col} //= bless([$me, $col], "DBIx::DBO::Column")
399 16 1 $$me->{'Config'} //= {}
400 73 4 $$me->{'Config'} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
54 1 32 0 ref $proto || $proto
81 141 0 5 ${$_[0];}->{'build_data'} // ${$_[0];}->{'Parent'}{'build_data'}
171 0 1 2 _isa($fld, "DBIx::DBO::Table") and exists $fld->{'Column_Idx'}{$col} or _isa($fld, "DBIx::DBO::Query") and eval { do { $fld->column($col) } }
1 0 2 _isa($fld, "DBIx::DBO::Table") and exists $fld->{'Column_Idx'}{$col} or _isa($fld, "DBIx::DBO::Query") and eval { do { $fld->column($col) } } or ref $fld eq "ARRAY" and exists $fld->[2]{'AS'} and $col eq $fld->[2]{'AS'}