Branch Coverage

blib/lib/Crypt/YAPassGen.pm
Criterion Covered Total %
branch 19 50 38.0


line true false branch
64 3 0 if (defined $alg)
65 0 3 if (ref $alg eq 'CODE') { }
68 0 3 unless 'Crypt::YAPassGen'->ALGORITHMS->{$alg}
79 2 0 if defined $ascii
86 2 0 if (defined $freq)
87 0 2 if ($freq eq '') { }
2 0 elsif (-e $freq and -r _) { }
104 0 2 if (defined $sub)
105 0 0 if (ref $sub eq 'ARRAY') { }
119 1 0 if (defined $sub)
120 1 0 if (ref $sub eq 'CODE') { }
0 0 elsif ('Crypt::YAPassGen'->PRECOOKED_SUBS->{$sub}) { }
142 3 1 if (defined $length)
143 0 3 unless $length >= 1
156 0 6 if $$self{'ascii'}
172 0 0 ref $input ? :
176 0 0 if (ref $proto)
184 0 0 unless open IN, '<', $file
188 0 0 if $ascii
203 0 0 if defined $output
205 0 0 if $self
221 49 0 if ($f and $$self{'freq'}{$f} and %{$$self{'freq'}{$f}[1];} and $$self{'freq'}{$f}[1]{$s} and %{$$self{'freq'}{$f}[1]{$s}[1];})
227 6 0 if ($s and $$self{'freq'}{$s} and %{$$self{'freq'}{$s}[1];})
272 0 43 if $total == 0
288 61 513 if ($rand -= $weight) < 0