Branch Coverage

blib/lib/Test/DBIx/Class/SchemaManager.pm
Criterion Covered Total %
branch 40 58 68.9


line true false branch
108 5 0 if (my $fixture = $self->fixture_sets->{$set})
120 0 20 unless $schema_class
129 12 0 if (my $default = $self->can('get_default_connect_info')) { }
138 17 3 unless $self->connect_opts
155 0 20 if (defined $config->{'traits'})
156 0 0 ref $config->{'traits'} ? :
159 8 12 if (my $connect_info = $config->{'connect_info'}) { }
162 8 0 if (lc $driver eq 'sqlite')
168 12 0 unless @traits
174 0 20 unless my $self = Moose::Util::with_traits($class, @traits)->new($config)
178 1 19 if ($config->{'default_resultset_attributes'})
182 19 1 if $self->deploy_db
194 0 0 if $cb
201 2 21 $self->force_drop_table ? :
202 23 0 if (my $schema = $self->schema)
205 0 23 if ($@)
217 0 15 unless $schema
218 0 15 unless $schema->storage
220 12 3 unless ($self->keep_db)
224 0 122 unless $source
239 1 11 if exists $deploy_opts->{'sources'}
240 1 10 if exists $deploy_opts->{'parser_args'}{'sources'}
254 20 102 if ($source->isa('DBIx::Class::ResultSource::View')) { }
255 10 10 unless $source->is_virtual
261 112 10 if defined $sql
293 3 6 if (not ref $args[0] and $args[0] =~ /^::/ or ref $args[0] eq 'HASH' and $args[0]{'command'})
296 0 3 ref $args[0] ? :
298 1 2 if $self->tdbic_debug
309 10 0 if (defined $self)