Branch Coverage

blib/lib/DBIx/Class/Schema/Config.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
17 1 14 if (ref $info[0] eq 'CODE')
26 1 13 if defined $attrs->{'dbh_maker'}
31 5 8 unless $attrs->{'dsn'} =~ /dbi:/i
43 9 25 if ref $dsn eq 'HASH'
47 2 23 ref $user eq 'HASH' ? :
48 2 23 ref $pass eq 'HASH' ? :
49 17 8 unless $dbi_attr
50 24 1 unless $extra_attr
58 7 12 unless ($class->_config)
72 1 6 @{$class->config_files;} ? :
84 2 16 if $connect_args->{'dsn'} =~ /^dbi:/i
102 16 9 if ($database eq $connect_args->{'dsn'})
111 1 9 if exists $ENV{'DBIX_CONFIG_DIR'}
123 12 2 unless $old->{'password'}
124 11 3 unless $old->{'user'}