Condition Coverage

blib/lib/Concierge/Auth/Pwd.pm
Criterion Covered Total %
condition 51 81 62.9


and 3 conditions

line !l l&&!r l&&r condition
93 1 3 25 defined $password and length $password > 0
95 5 1 19 length $password >= 8 and length $password <= 72
106 0 1 7 defined $user_id and length $user_id > 0
108 0 0 7 defined $credential and length $credential > 0
138 0 0 9 defined $user_id and length $user_id > 0
142 2 0 7 $pfile and -e $pfile
165 0 2 18 defined $user_id and length $user_id > 0
167 1 1 16 length $user_id >= 2 and length $user_id <= 32
181 0 0 10 $pfile and -e $pfile
217 0 1 6 defined $user_id and length $user_id > 0
226 2 0 2 $pfile and -e $pfile
2 0 2 $pfile and -e $pfile and -r $pfile
249 0 0 2 seek $fh, 0, 0 and truncate $fh, 0
0 0 2 seek $fh, 0, 0 and truncate $fh, 0 and print $fh @output
0 0 2 seek $fh, 0, 0 and truncate $fh, 0 and print $fh @output and close $fh
268 0 1 3 defined $user_id and length $user_id > 0
274 1 0 2 $pfile and -e $pfile
294 0 0 2 seek $fh, 0, 0 and truncate $fh, 0
0 0 2 seek $fh, 0, 0 and truncate $fh, 0 and print $fh @output
0 0 2 seek $fh, 0, 0 and truncate $fh, 0 and print $fh @output and close $fh
367 0 0 5 -e $file and -r $file
380 2 0 2 $pfile and -e $pfile

or 2 conditions

line l !l condition
224 2 2 $self->{'auth'}{'file'} || ''
272 2 1 $self->{'auth'}{'file'} || ''
331 6 1 shift() || 'Auth confirmation'
335 7 1 shift() || 'Auth rejection'
340 7 1 shift() // 0
379 2 2 $self->{'auth'}{'file'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
341 5 3 0 shift() || ($bool ? 'Auth confirmation' : 'Auth rejection')