Branch Coverage

lib/Haineko/HTTPD/Auth.pm
Criterion Covered Total %
branch 13 22 59.0


line true false branch
13 2 4 unless exists $$argvs{'username'}
14 1 3 unless exists $$argvs{'password'}
20 1 2 unless ($credential)
22 1 0 unless defined $ENV{'HAINEKO_ROOT'}
24 0 0 unless -f $passworddb and $ENV{'HAINEKO_DEBUG'}
25 0 0 unless -f -r -s $passworddb
35 0 2 if $exceptions
36 0 2 unless defined $credential
37 0 2 unless keys %$credential
39 1 1 unless exists $$credential{$$argvs{'username'}}
45 1 0 if 'Crypt::SaltedHash'->validate($password00, $password01)