Branch Coverage

blib/lib/Dancer2/Plugin/DBIx/Class.pm
Criterion Covered Total %
branch 25 42 59.5


line true false branch
18 5 0 if (defined $config->{'default'})
19 5 0 unless ($config->{'default'}{'alias'})
33 5 7 if $schema eq "default"
34 2 5 if $config->{$schema}{'alias'}
44 4 14 if defined $self->keywords->{$new_keyword}
55 4 3 unless (defined $name)
56 0 4 unless my(@names) = keys %{$cfg;}
60 0 4 @names == 1 ? :
63 0 7 unless my $options = $cfg->{$name}
66 0 7 if ($schema_cfg)
70 4 3 if $_schemas->{$name}
72 1 2 if (my $alias = $options->{'alias'})
73 0 1 unless $options = $cfg->{$alias}
75 1 0 if $_schemas->{$alias}
87 0 2 $options->{'connect_info'} ? :
88 0 2 if (exists $options->{'pass'})
94 2 0 if (my $schema_class = $options->{'schema_class'}) { }
103 0 2 unless eval {
104 0 2 if (my $replicated = $options->{'replicated'}) { }
110 0 0 if defined $value
123 0 0 unless eval {