Condition Coverage

blib/lib/Concierge/Auth.pm
Criterion Covered Total %
condition 38 65 58.4


and 3 conditions

line !l l&&!r l&&r condition
104 1 6 40 defined $id and length $id > 0
108 2 1 37 length $id >= 2 and length $id <= 32
128 1 2 24 defined $password and length $password > 0
132 4 1 19 length $password >= 8 and length $password <= 72
147 3 0 7 $file && -e $file && -r $file
190 0 0 2 $pfile and -e $pfile
209 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
332 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
380 0 0 2 $pfile and -e $pfile

or 2 conditions

line l !l condition
86 17 54 shift() || 'Auth confirmation'
90 36 0 shift() || 'Auth rejection'
95 30 0 shift() // 0
189 2 0 $self->{'auth'}{'file'} || ''
266 4 1 shift() || ''
267 5 0 shift() || ''
300 3 1 shift() || ''
301 4 0 shift() || ''
311 2 0 $self->{'auth'}{'file'} || ''
379 2 0 $self->{'auth'}{'file'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
96 30 0 0 shift() || ($bool ? 'Auth confirmation' : 'Auth rejection')
146 9 0 1 $file ||= $self->{'auth'}{'file'}