Condition Coverage

blib/lib/Math/Prime/Util.pm
Criterion Covered Total %
condition 71 168 42.2


and 3 conditions

line !l l&&!r l&&r condition
101 0 154 0 $_Config{'xs'} and $_Config{'secure'}
123 72 0 0 defined $ENV{'MPU_NO_XS'} and $ENV{'MPU_NO_XS'} == 1
132 0 0 0 defined $ENV{'MPU_NO_XS'} and $ENV{'MPU_NO_XS'} == 1
162 72 0 0 $_Config{'gmp'} >= 42 and not Math::Prime::Util::GMP::is_csprng_well_seeded()
72 0 0 $_Config{'gmp'} >= 42 and not Math::Prime::Util::GMP::is_csprng_well_seeded() and &_is_csprng_well_seeded()
222 0 0 0 not $value and $_Config{'secure'}
303 13 0 0 $strn =~ tr[0-9][\000-/:-\377]c and not $strn =~ /^\+?\d+$/
312 7 96 0 ref $_[0] eq 'Math::BigInt' and $_[0]->upgrade
313 103 0 0 defined $min and $_[0] < $min
314 103 0 0 defined $max and $_[0] > $max
372 1109 0 1 $high > 100000000000000 and $high - $low < 50000
410 3 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::sieve_twin_primes
3 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::sieve_twin_primes and $low > 2147483648
433 0 2 16 $high <= $_XS_MAXVAL and $low <= 4 || $high - $low + 1 > $high / (600 * sqrt($high))
515 30 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::primorial
527 25 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::pn_primorial
540 103 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::consecutive_integer_lcm
556 0 57 1 defined $n and $n <= 0
559 57 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::partitions
604 0 2 0 ref $end ne 'Math::BigInt' and $end == 18446744073709551615
610 8 2 10 $beg < $p and $beg <= $end
611 10 0 0 $semiprimes and not &is_semiprime($beg)
710 1 0 22 ref $p ne 'Math::BigInt' and $p <= $_XS_MAXVAL
720 22 0 0 $p + $segment > 18446744073709551615 and $p + 1 < 18446744073709551615
758 1 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::prime_count
1 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::prime_count and ref $high eq 'Math::BigInt' || $high - $low < int $low / 1000000
820 0 105 0 defined $n and $n < 2
830 11 0 0 $_HAVE_GMP and defined &Math::Prime::Util::GMP::is_provable_prime_with_cert
885 0 0 6 not defined $bignum::VERSION and ref $n ne 'Math::BigFloat'
0 0 6 not defined $bignum::VERSION and ref $n ne 'Math::BigFloat' and $_Config{'xs'}
896 0 0 9 not defined $bignum::VERSION and ref $n ne 'Math::BigFloat'
0 0 9 not defined $bignum::VERSION and ref $n ne 'Math::BigFloat' and $_Config{'xs'}
909 0 0 20 not defined $bignum::VERSION and ref $n ne 'Math::BigFloat'
0 2 18 not defined $bignum::VERSION and ref $n ne 'Math::BigFloat' and $_Config{'xs'}
923 0 0 23 not defined $bignum::VERSION and ref $n ne 'Math::BigFloat'
0 0 23 not defined $bignum::VERSION and ref $n ne 'Math::BigFloat' and $_Config{'xs'}
936 0 0 9 not defined $bignum::VERSION and ref $x ne 'Math::BigFloat'
0 0 9 not defined $bignum::VERSION and ref $x ne 'Math::BigFloat' and $_Config{'xs'}
946 0 116 0 defined $n and $n < 0
948 4 101 11 $n > 1 and $n & 1
995 21 0 0 defined $precision and $precision <= 13

or 3 conditions

line l !l&&r !l&&!r condition
152 72 0 0 not defined $ENV{'MPU_NO_GMP'} or $ENV{'MPU_NO_GMP'} != 1
210 8 0 9 $param =~ /^(assume[_ ]?)?[ge]?rh$/ or $param =~ /riemann\s*h/
255 0 7338 113 !defined($_[0]) || ref $_[0] eq 'Math::BigInt'
295 0 0 90 $n->sign ne '+' or not $n->is_int
303 0 0 13 $strn eq '' or $strn =~ tr[0-9][\000-/:-\377]c and not $strn =~ /^\+?\d+$/
349 8 2 1128 $low > $high or $high < 2
372 17 1 1109 $low + 1 >= $high or $high > 100000000000000 and $high - $low < 50000
1100 0 9 $high <= 1966080 or $high <= &_get_prime_cache_size()
406 0 0 20 $low > $high or $high < 2
431 0 0 18 $low > $high or $high < 4
433 6 11 1 $low <= 4 || $high - $low + 1 > $high / (600 * sqrt($high))
451 0 0 15 $low > $high or $high < 2
649 0 0 0 not $sf or &is_square_free($beg)
755 0 0 1 $high < 2 or $low > $high
758 0 0 0 ref $high eq 'Math::BigInt' || $high - $low < int $low / 1000000