Branch Coverage

blib/lib/DBIx/Class/Schema/Loader.pm
Criterion Covered Total %
branch 42 56 75.0


line true false branch
165 35 75 ref $_[0] eq 'HASH' ? :
179 82 35 if (ref $self)
187 10 107 if $self->naming
188 4 113 if defined $self->use_namespaces
191 9 108 if ($loader_class)
192 3 6 if $loader_class =~ /^::/
210 75 35 if (ref $self)
235 75 0 if $orig_class_mappings
238 75 0 if $orig_source_registrations
262 242 0 if (&try(sub { 'DBIx::Class'->VERSION('0.08197'); 1; } )) { }
278 0 0 if ($from->storage)
311 12 107 if ($_[-1] and ref $_[-1] eq "HASH")
313 9 15 if (my $value = delete $_[-1]{$option})
317 8 4 unless keys %{$_[-1];}
333 118 0 if ($temp_loader->schema_base_class or $temp_loader->schema_components)
334 118 0 if $temp_loader->schema_components
337 5 113 if $temp_loader->schema_base_class
346 6 4 /^\+/ ? :
349 4 114 unless &array_eq([@$class_isa[0 .. @components - 1]], \@component_classes)
352 4 114 if ($modify_isa) { }
371 4 1 if $next_method
380 117 1 unless ($class->_loader_invoked)
398 167 0 if ($clone->_loader_args)
464 15 6 unless @_
469 0 6 if ($opt =~ /^dump_to_dir:(.*)$/) { }
6 0 elsif ($opt eq 'make_schema_at') { }
0 0 elsif ($opt eq 'naming') { }
0 0 elsif ($opt eq 'use_namespaces') { }