Branch Coverage

blib/lib/DBIx/Class/Schema/Config.pm
Criterion Covered Total %
branch 38 40 95.0


line true false branch
18 1 14 if (ref $info[0] eq 'CODE')
27 1 13 if defined $attrs->{'dbh_maker'}
32 5 8 unless $attrs->{'dsn'} =~ /^dbi:/i
45 6 0 defined $db ? :
46 6 0 if $url->host
47 1 5 if $url->port and $url->port != 80
58 5 1 if ($url->userinfo)
74 9 32 if ref $dsn eq 'HASH'
78 2 30 ref $user eq 'HASH' ? :
79 2 30 ref $pass eq 'HASH' ? :
80 24 8 unless $dbi_attr
81 31 1 unless $extra_attr
89 7 12 unless ($class->_config)
103 1 6 @{$class->config_files;} ? :
114 6 18 if $connect_args->{'dsn'} =~ /^postgresql:/i
119 2 16 if $connect_args->{'dsn'} =~ /^dbi:/i
137 16 11 if ($database eq $connect_args->{'dsn'})
146 1 9 if exists $ENV{'DBIX_CONFIG_DIR'}
158 12 2 unless $old->{'password'}
159 11 3 unless $old->{'user'}