Condition Coverage

blib/lib/Math/Prime/Util/PrimalityProving.pm
Criterion Covered Total %
condition 59 144 40.9


and 3 conditions

line !l l&&!r l&&r condition
139 11 0 2 $B <= $_maxint and prime_get_config()->{'xs'}
169 2 6 5 ref $m eq 'Math::BigInt' and $m <= $_maxint
210 12 1 0 $s != 0 and $rtestroot * $rtestroot == $rtest
296 12 0 0 scalar @$pdata == 3 and ref $pdata->[0] eq 'ARRAY'
12 0 0 scalar @$pdata == 3 and ref $pdata->[0] eq 'ARRAY' and $pdata->[0][0] =~ /^(B|T7|Theorem\s*7)$/i
373 2 0 29 scalar @pdata == 1 and ref $pdata[0] eq 'ARRAY'
462 1 0 0 $n % 4 == 3 and $m % 4 == 3
464 0 0 1 ref $n eq 'Math::BigInt' and $n <= $_maxint
465 0 0 1 ref $m eq 'Math::BigInt' and $m <= $_maxint
473 0 0 0 $n % 4 == 3 and $m % 4 == 3
524 0 0 28 $1 >= 0 and $1 <= $index
584 9 0 0 prime_get_config()->{'gmp'} and defined &Math::Prime::Util::GMP::_validate_ecpp_curve
760 1 0 5 $R == 1 and $F == $nm1
799 143 0 0 $cert_type eq 'PRIMO' and $line =~ /^\[Candidate\]/
0 99 44 $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 13 not defined $n or $n < 2
180 0 0 26 $f == 1 or $f == $m
0 0 26 $f == 1 or $f == $m or not $B->copy->bmod($f)->is_zero
274 12 0 19 $method eq 'Pratt' or $method eq 'Lucas'
275 0 0 12 scalar @$pdata != 2 or ref $pdata->[0] ne 'ARRAY'
0 0 12 scalar @$pdata != 2 or ref $pdata->[0] ne 'ARRAY' or ref $pdata->[1] eq 'ARRAY'
299 0 0 12 scalar @$pdata != 2 or ref $pdata->[0] ne 'ARRAY'
0 0 12 scalar @$pdata != 2 or ref $pdata->[0] ne 'ARRAY' or ref $pdata->[1] ne 'ARRAY'
334 7 0 0 $method eq 'ECPP' or $method eq 'AGKM'
342 0 0 14 ref $block ne 'ARRAY' or scalar @$block != 6
352 0 0 14 ref $P ne 'ARRAY' or scalar @$P != 2
409 0 0 178 $line =~ /^\s*#/ or $line =~ /^\s*$/
431 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
438 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
449 0 0 1 $m <= 0 or $m % 2 == 0
459 0 3 0 $m % 8 == 3 or $m % 8 == 5
470 0 0 0 $m % 8 == 3 or $m % 8 == 5
512 0 0 124 $line =~ /^\s*#/ or $line =~ /^\s*$/
542 0 0 67 $line =~ /^\s*#/ or $line =~ /^\s*$/
723 9 4 0 $s == 0 or not _is_perfect_square($r * $r - 8 * $s)
790 0 100 187 $line =~ /^\s*#/ or $line =~ /^\s*$/
799 0 44 99 $cert_type eq 'PRIMO' and $line =~ /^\[Candidate\]/ or $cert_type eq 'MPU' and $line =~ /^Proof for:/