Branch Coverage

blib/lib/ORM/Tjoin.pm
Criterion Covered Total %
branch 54 66 81.8


line true false branch
58 14 39 if (not exists $arg{'class'}) { }
0 39 elsif (not UNIVERSAL::isa($arg{'class'}, 'ORM') or $arg{'class'}->_is_initial) { }
79 0 39 if ($$self{'cond'} and $$self{'cond'}->_tjoin->class ne $$self{'class'})
87 33 6 $$self{'left_prop'} eq 'id' ? :
90 6 61 $tables[$i] eq $primary ? :
93 5 34 if ($arg{'all_tables'}) { }
100 14 20 if $arg{'prop'}
133 11 22 if $$self{'used_table'}
134 0 33 if $$self{'tables'}
160 0 1 if ($$self{'cond'})
179 12 4 if ($i == 0) { }
181 11 1 unless $nested
185 1 3 $nested ? :
244 0 2 if $sql
260 7 58 if ($prop) { }
263 7 0 if ($$self{'link'}{$prop}{$fingerprint})
288 37 38 unless (defined $$self{'tables'} and @{$$self{'tables'};})
290 32 5 if (defined $$self{'used_table'} and %{$$self{'used_table'};}) { }
315 36 26 if ($$self{'alias_num'})
317 0 36 $$self{'alias'} ? :
337 8 8 if ($alias) { }
357 26 16 if ($alias) { }
385 39 36 if ($prop eq 'id') { }
2 34 elsif ($prop eq 'class') { }
391 2 0 unless (exists $$self{'used_table'}{$table})
400 26 8 unless (exists $$self{'used_table'}{$table})
422 8 3 if $$self{'alias_num'} == 1 and $alias == 1 and $self->tables_count == 1
436 8 0 if ($self->class->_has_prop($prop)) { }
452 25 1 if (ref $tjoin ne 'ORM::TjoinNull')
454 25 0 if (UNIVERSAL::isa($self->class, $tjoin->class)) { }
0 0 elsif (UNIVERSAL::isa($tjoin->class, $self->class)) { }
472 13 12 unless ($$self{'used_table'}{$table})
483 6 1 if (exists $$self{'link'}{$prop}{$fingerprint}) { }