Branch Coverage

blib/lib/Rose/Planter.pm
Criterion Covered Total %
branch 21 64 32.8


line true false branch
88 4 0 unless $ENV{'ROSE_PLANTER_DEBUG'}
90 0 0 unless ($_logfp)
99 0 1 unless %p and keys %p
113 0 1 if $seed and $are_planting{$seed}
115 1 0 unless my $inc_dir = $INC{$seed_dir}
123 0 0 if $_[0] =~ /^subroutine.*redefined/i
130 0 0 unless (@used)
168 0 0 if ($INC{_class2path($seed) . '.pm'})
172 0 0 if $@
182 0 0 $db_class && !$manager ? :
183 0 0 if ($found)
194 0 1 unless my $seed = $params{'seed'}
195 1 0 unless $dir = $are_planting{$seed}
209 0 1 unless $params{'loader_params'}
211 1 0 unless ($loader_params{'base_class'} or $loader_params{'base_classes'})
215 1 0 unless ($loader_params{'manager_base_class'} or $loader_params{'manager_base_classes'})
224 0 1 $params{'make_modules'} ? :
225 0 1 $params{'made'} ? :
226 0 1 unless @made > 0
229 2 2 if ($made->can('meta'))
233 0 2 if $table2Class{$table} and $table2Class{$table} ne $made
235 0 2 if ($table =~ /^(.*)_def$/)
237 0 0 if $table2Class{$1} and $table2Class{$1} ne $made
241 2 2 if ($made->can('get_objects'))
250 4 0 unless ($method eq 'make_modules')
252 0 4 if $@ and not $@ =~ /Can't locate/
256 1 0 unless $params{'nested_tables'}
258 0 0 unless my $found = $class->find_class($t)
350 0 0 unless my $object_class = 'Rose::Planter'->find_class($table)
351 0 0 unless $object_class->can('meta')
355 0 0 unless @keys == @$keycols
357 0 0 if $object->load('speculative', 1, 'with', $object_class->nested_tables)