Branch Coverage

blib/lib/Authen/Quiz.pm
Criterion Covered Total %
branch 15 30 50.0


line true false branch
34 3 0 $_[1] ? :
36 0 3 unless $$option{'data_folder'}
40 0 3 unless -e $$option{'session_file'}
42 0 3 unless -w $$option{'session_file'}
52 0 4 unless $$data[0]
53 0 4 unless $$data[1]
63 0 1 if not $T or $T < $limit
84 0 1 if not $T or $T < $limit
85 1 0 if ($sid eq $sha1) { }
86 1 0 if (my $data = $$quiz{$key})
87 1 0 if $$data[1] and $answer eq $$data[1]
97 1 1 unless $result
101 0 1 if (my $sid = shift()) { }
110 0 0 if not $T or $T < $limit or $sid eq $sha1
119 2 0 $_[1] ? :