Condition Coverage

blib/lib/Class/Inflate.pm
Criterion Covered Total %
condition 48 83 57.8


and 3 conditions

line !l l&&!r l&&r condition
48 2 0 4 $class->isa('Class::Inflate') and &{$class->can('ima_generator');}
91 2 1 6 exists $$persist{$$sql{'table'}}{'join'} and keys %{$$persist{$$sql{'table'}}{'join'};}
94 4 0 2 @data and $rows_fetched{$table}
109 4 2 3 @data and $awaiting_join{$$sql{'table'}}
199 4 2 2 @$path and grep {not $$join{$_};} @pkey
206 4 0 2 not @paths and exists $$persist{$external}{'join'}
213 2 0 1 @$path and grep {not $$join{$_};} @pkey
225 1 0 1 @$path and grep {not $$join{$_};} @pkey
247 5 1 1 $middle_join and $from eq $external
440 1 0 5 exists $$table_instructions{'join'} && exists $$table_instructions{'join'}{$path[$element]}
505 0 0 3 ref $field eq 'HASH' and exists $$field{'fields'}
542 0 3 0 defined $value and length $value
560 0 0 0 ref $field eq 'HASH' and exists $$field{'fields'}
597 9 0 0 exists $$persist{$table}{'filter'} and keys %{$$persist{$table}{'filter'};}
619 0 0 9 $dbh and my $sth = $dbh->prepare($query)
696 0 0 8 ref $field eq 'HASH' and exists $$field{'fields'}
711 0 0 8 $$field{'wantref'} and @values > 1

or 2 conditions

line l !l condition
97 1 3 $awaiting_join{$table} ||= []
260 5 3 $join_fields{$step} ||= []
387 8 0 shift() || []
421 2 8 shift() || ''
437 3 10 shift() || 0
583 0 3 $values{$table} ||= {'fields', [], 'values', []}
639 6 0 $$persist{$child}{'join'}{$parent} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
82 0 3 0 shift() || $self
266 0 0 1 $filter_item eq $join_from . ' = ' . $join_to or $filter_item eq $join_to . ' = ' . $join_from
491 3 0 0 shift() || method_tables($class, $persist)
537 3 0 0 shift() || method_tables($class, $persist)
685 3 5 0 $$objects[$c++] ||= $class->new
711 0 0 8 $$field{'forceref'} or $$field{'wantref'} and @values > 1