Condition Coverage

blib/lib/Mojolicious/Plugin/DSC.pm
Criterion Covered Total %
condition 23 27 85.1


or 2 conditions

line l !l condition
22 21 0 $config //= {}
23 13 8 $config->{'load_classes'} //= []
25 11 10 $config->{'dbh_attributes'} //= {}
26 11 10 $config->{'database'} //= ''
39 5 2 $config->{'host'} ||= 'localhost'
65 9 5 $config->{'onconnect_do'} ||= []
75 6 11 $config->{'user'} || ''
0 17 $config->{'password'} || ''
101 12 2 $config->{'dbix_helper'} ||= 'dbix'

or 3 conditions

line l !l&&r !l&&!r condition
24 10 2 9 $config->{'DEBUG'} //= $app->mode =~ /^dev/
55 7 1 0 'DBI'->parse_dsn($config->{'dsn'}) || croak("Can't parse DBI DSN! dsn=>'$config->{'dsn'}'")
59 5 2 0 $config->{'namespace'} ||= camelize($2)