Branch Coverage

blib/lib/Math/Prime/Util/PPFE.pm
Criterion Covered Total %
branch 28 64 43.7


line true false branch
32 0 0 if prime_get_config()->{'secure'}
33 0 0 unless (defined $seed)
36 0 0 $nbytes == 4 ? :
39 0 0 if $Math::Prime::Util::_GMPfunc{'seed_csprng'}
44 0 0 if defined $seed and prime_get_config()->{'secure'}
45 1 0 unless defined $seed
47 0 1 if $Math::Prime::Util::_GMPfunc{'seed_csprng'}
53 0 1 if not defined $bytes or $bytes < 1 or $bytes > 4294967295 or $bytes != int $bytes
56 0 1 unless (defined $data)
61 0 1 unless length $data == $bytes
86 0 0 if $_[0]
477 0 4 if $n < 0
483 0 4 if $n < 0
489 0 7 if $n < 0
495 0 9 if $n < 0
496 4 5 if (defined $increment) { }
498 0 9 if $increment < 1 or $increment > 256
505 0 3 if $n < 0
511 0 1 if $n < 0
518 0 1 if $n < 0
524 0 1 if $n < 0
530 0 10 if $n < 0
536 0 2 if $n < 0
595 23 0 if defined $type
633 0 4 if $_ <= 0
682 1 0 if defined $digits
740 0 1 unless (ref $sub || '') eq "CODE"
741 0 1 if grep {(ref $_ || '') ne "ARRAY";} @v
743 0 1 if scalar @v == 0 or grep {not @$_;} @v
752 0 6 if $_exitloop
754 3 5 if ($cnt[$i] >= $#{$v[$i];}) { }
822 0 1 unless ref $aref eq "ARRAY"