Branch Coverage

blib/lib/DBICx/Sugar.pm
Criterion Covered Total %
branch 23 44 52.2


line true false branch
19 4 21 if ($data)
20 0 4 unless 'HASH' eq ref $data
23 25 0 if $_config
25 0 0 if (-f 'config.yaml') { }
0 0 elsif (-f 'config.yml') { }
40 0 0 if exists $_config->{$schema_name}
41 0 0 unless 'HASH' eq ref $schema_data
50 10 11 unless (defined $name)
51 5 5 if (keys %$cfg == 1) { }
5 0 elsif (keys %$cfg) { }
60 11 10 if $_schemas->{$name}
62 3 7 unless my $options = $cfg->{$name}
63 2 5 if (my $alias = $options->{'alias'})
64 1 1 unless $options = $cfg->{$alias}
66 1 0 if $_schemas->{$alias}
71 0 5 $options->{'connect_info'} ? :
72 0 5 if (exists $options->{'pass'})
79 5 0 if (my $schema_class = $options->{'schema_class'}) { }
82 0 5 if $@
83 0 5 if (my $replicated = $options->{'replicated'}) { }
89 0 0 if defined $value
100 0 0 if $@