Branch Coverage

blib/lib/Dancer2/Plugin/Auth/Extensible/Provider/Database.pm
Criterion Covered Total %
branch 19 24 79.1


line true false branch
329 3 58 unless defined $username and defined $password
334 37 21 unless $user
342 0 21 unless defined $correct and $correct ne ''
356 2 10 unless my $username = delete $options{'username'}
363 7 0 $ret ? :
374 2 156 unless defined $username
384 48 108 if (not $user) { }
403 2 14 unless my $user = $self->get_user_details($username)
449 0 14 unless my $sth = $database->prepare($sql)
475 5 11 unless $username
477 0 11 unless my $user = $self->get_user_details($username)
481 11 0 $ret ? :