Condition Coverage

blib/lib/Math/Prime/Util/PrimalityProving.pm
Criterion Covered Total %
condition 68 144 47.2


and 3 conditions

line !l l&&!r l&&r condition
139 4 2 0 $B <= $_maxint and prime_get_config()->{'xs'}
169 0 0 1 ref $m eq "Math::BigInt" and $m <= $_maxint
210 6 0 0 $s != 0 and $rtestroot * $rtestroot == $rtest
296 15 1 0 scalar @$pdata == 3 and ref $pdata->[0] eq "ARRAY"
16 0 0 scalar @$pdata == 3 and ref $pdata->[0] eq "ARRAY" and $pdata->[0][0] =~ /^(B|T7|Theorem\s*7)$/i
373 2 0 43 scalar @pdata == 1 and ref $pdata[0] eq "ARRAY"
464 1 0 0 $n % 4 == 3 and $m % 4 == 3
466 0 0 1 ref $n eq "Math::BigInt" and $n <= $_maxint
467 0 0 1 ref $m eq "Math::BigInt" and $m <= $_maxint
475 0 0 0 $n % 4 == 3 and $m % 4 == 3
526 0 0 31 $1 >= 0 and $1 <= $index
586 9 0 0 prime_get_config()->{'gmp'} and defined &Math::Prime::Util::GMP::_validate_ecpp_curve
762 1 0 5 $R == 1 and $F == $nm1
801 130 0 0 $cert_type eq "PRIMO" and $line =~ /^\[Candidate\]/
0 90 40 $cert_type eq "MPU" and $line =~ /^Proof for:/

or 3 conditions

line l !l&&r !l&&!r condition
72 0 0 1 not defined $n or $n < 2
122 0 0 6 not defined $n or $n < 2
180 0 0 2 $f == 1 or $f == $m
0 0 2 $f == 1 or $f == $m or not $B->copy->bmod($f)->is_zero
274 15 0 30 $method eq "Pratt" or $method eq "Lucas"
275 3 0 12 scalar @$pdata != 2 or ref $pdata->[0] ne "ARRAY"
3 0 12 scalar @$pdata != 2 or ref $pdata->[0] ne "ARRAY" or ref $pdata->[1] eq "ARRAY"
299 1 1 14 scalar @$pdata != 2 or ref $pdata->[0] ne "ARRAY"
2 1 13 scalar @$pdata != 2 or ref $pdata->[0] ne "ARRAY" or ref $pdata->[1] ne "ARRAY"
334 13 0 1 $method eq "ECPP" or $method eq "AGKM"
342 1 1 17 ref $block ne "ARRAY" or scalar @$block != 6
352 1 1 14 ref $P ne "ARRAY" or scalar @$P != 2
409 0 0 162 $line =~ /^\s*#/ or $line =~ /^\s*$/
432 0 1 3 $mc == 0 or $mc == 1
1 0 3 $mc == 0 or $mc == 1 or $mc == 4
1 1 2 $mc == 0 or $mc == 1 or $mc == 4 or $mc == 9
1 0 2 $mc == 0 or $mc == 1 or $mc == 4 or $mc == 9 or $mc == 16
1 1 1 $mc == 0 or $mc == 1 or $mc == 4 or $mc == 9 or $mc == 16 or $mc == 17
1 1 0 $mc == 0 or $mc == 1 or $mc == 4 or $mc == 9 or $mc == 16 or $mc == 17 or $mc == 25
439 0 0 0 $mc == 0 or $mc == 1
0 0 0 $mc == 0 or $mc == 1 or $mc == 4
0 0 0 $mc == 0 or $mc == 1 or $mc == 4 or $mc == 9
0 0 0 $mc == 0 or $mc == 1 or $mc == 4 or $mc == 9 or $mc == 16
0 0 0 $mc == 0 or $mc == 1 or $mc == 4 or $mc == 9 or $mc == 16 or $mc == 17
0 0 0 $mc == 0 or $mc == 1 or $mc == 4 or $mc == 9 or $mc == 16 or $mc == 17 or $mc == 25
451 0 0 1 $m <= 0 or $m % 2 == 0
461 0 3 0 $m % 8 == 3 or $m % 8 == 5
472 0 0 0 $m % 8 == 3 or $m % 8 == 5
514 0 0 125 $line =~ /^\s*#/ or $line =~ /^\s*$/
544 0 0 67 $line =~ /^\s*#/ or $line =~ /^\s*$/
725 8 4 0 $s == 0 or not _is_perfect_square($r * $r - 8 * $s)
792 0 91 170 $line =~ /^\s*#/ or $line =~ /^\s*$/
801 0 40 90 $cert_type eq "PRIMO" and $line =~ /^\[Candidate\]/ or $cert_type eq "MPU" and $line =~ /^Proof for:/