Branch Coverage

blib/lib/DBIx/Admin/DSNManager.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
76 2 1 if ($self->file_name and not $self->config)
118 3 0 if ($self->verbose)
153 0 0 unless ($config)
168 0 0 unless exists $config->{$section}{$key}
170 0 0 if ($key eq 'attributes') { }
195 1 3 if ($s)
197 1 0 if ($s =~ /^\{\s*([^}]*)\}$/) { }
201 0 1 if scalar(@attr) % 2 != 0
203 1 0 if (@attr)
225 0 2 if (not $config or ref $config ne 'HASH')
240 4 20 if ($key eq 'dsn')
242 4 0 if ($config->{$section}{$key}) { }
252 1 19 unless exists $config->{$section}{$key}
256 3 16 unless ($config->{$section}{$key})
263 0 2 if ($count == 0)
280 0 1 if (ref $file_name eq 'HASH') { }
303 2 4 unless exists $config->{$section}{$key}
309 0 4 if ($key eq 'attributes')