Branch Coverage

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


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