Branch Coverage

blib/lib/Mojolicious/Plugin/PgURLHelper.pm
Criterion Covered Total %
branch 16 16 100.0


line true false branch
20 2 11 unless (defined $s->{'host'})
24 2 11 unless (defined $s->{'database'})
28 1 12 if (index($s->{'user'}, ':') != -1)
32 4 9 if $croak
39 2 7 if defined $s->{'port'}
40 6 3 defined $s->{'user'} ? :
41 6 3 defined $s->{'pwd'} ? :
42 5 4 if $user and $pwd