Branch Coverage

blib/lib/DBIx/Config.pm
Criterion Covered Total %
branch 36 40 90.0


line true false branch
28 8 0 if $self->can($arg)
31 0 16 if keys %$args
38 0 16 if (exists $ENV{'DBIX_CONFIG_DIR'})
47 3 7 if (not ref $self or ref $self ne 'DBIx::Config')
57 0 9 if (not ref $self or ref $self ne 'DBIx::Config')
66 5 4 unless $config->{'dsn'} =~ /dbi:/i
78 5 24 if ref $dsn eq 'HASH'
83 1 23 ref $user eq 'HASH' ? :
84 2 22 ref $pass eq 'HASH' ? :
85 18 6 unless $dbi_attr
86 22 2 unless $extra_attr
111 1 10 if ($self->load_credentials)
120 2 8 if $connect_args->{'dsn'} =~ /^dbi:/i
125 1 7 @{$self->config_files;} ? :
145 8 3 if ($database eq $connect_args->{'dsn'})
155 1 7 if ($self->filter_loaded_credentials)
166 5 8 if @_
172 1 9 if @_
178 1 9 if @_
184 1 12 if @_