Condition Coverage

blib/lib/Math/BigInt/Lite.pm
Criterion Covered Total %
condition 86 203 42.3


and 3 conditions

line !l l&&!r l&&r condition
134 0 0 0 defined $a and $a == 0
235 0 0 0 defined $cmp && $_[2]
268 0 2 0 @_ == 1 and ref $_[0] eq "HASH"
301 0 26 0 @_ and ref $_[0] || $_[0] =~ /^[a-z]\w*(?:::[a-z]\w*)*$/i
335 14 2 16 @args and $a != 1
355 0 8 0 @_ and ref $_[0] || $_[0] =~ /^[a-z]\w*(?:::[a-z]\w*)*$/i
367 0 11 5 defined &blessed($arg) and $arg->isa($upgrade)
387 697 966 12975 CORE::length $wanted <= $MAX_NEW_LEN and $wanted =~ /^[+-]?[0-9]{1,$MAX_NEW_LEN}(\.0*)?\z/
411 0 2984 0 defined $upgrade and not $x->isa($class)
423 0 543 0 defined $upgrade and not $x->isa($class)
449 0 0 0 defined $upgrade and not $x->isa($class)
488 0 0 0 defined $upgrade and not $x->isa($class)
527 0 0 0 defined $upgrade and not $x->isa($class)
539 0 0 0 defined $upgrade and not $x->isa($class)
564 528 0 13 not ref $_[0] and $_[0] =~ /^Math::BigInt::Lite/
574 0 46 495 $x->isa($class) and $y->isa($class)
595 121 0 2 not ref $_[0] and $_[0] =~ /^Math::BigInt::Lite/
605 0 3 120 $x->isa($class) and $y->isa($class)
606 3 120 0 $up == 0 and abs $$x >= $MAX_MUL || abs $$y >= $MAX_MUL
689 108 1 8 defined $_[0] and $_[0] =~ /^\s*([+-])\s*$/
713 0 6 561 ref $_[0] && ref $_[0] eq ref $_[1]
717 0 6 561 $x->isa($class) && $y->isa($class)
0 561 6 defined $upgrade and not $x->isa($class) && $y->isa($class)
725 0 5 7 ref $_[0] && ref $_[0] eq ref $_[1]
729 0 5 7 $x->isa($class) && $y->isa($class)
0 7 5 defined $upgrade and not $x->isa($class) && $y->isa($class)
984 29 0 0 ref $b and $b->isa($class)
1128 50 23 17 $$rem != 0 and ($$x <=> 0) != ($$y <=> 0)
1156 26 8 8 $$rem != 0 and ($$x <=> 0) != ($$y <=> 0)
1256 0 6 0 defined $upgrade and not $x->isa($class)
1280 0 6 0 defined $upgrade and not $x->isa($class)
1296 0 5 0 defined $upgrade and not $x->isa($class)
1316 0 0 0 defined $upgrade and not $x->isa($class)
1341 0 0 0 defined $upgrade and not $x->isa($class)
1374 0 0 0 defined $upgrade and not $x->isa($class)
1408 0 0 0 defined $upgrade and not $x->isa($class)
1420 0 0 0 defined $upgrade and not $x->isa($class)
1522 38 0 0 not ref $_[0] and $_[0] =~ /^[A-Za-z]|::/
1533 5 7 26 defined $base and $base->isa($class)
1567 0 5 26 defined $base and $base->isa($class)
1576 0 2 25 defined $y and $y->isa($class)
1577 0 2 25 defined $z and $z->isa($class)
1586 0 3 157 defined $y and $y->isa($class)
1595 0 3 26 defined $y and $y->isa($class)

or 2 conditions

line l !l condition
109 77 0 ref $self || $self || 'Math::BigInt::Lite'
128 0 0 ref $x || $x || 'Math::BigInt::Lite'
164 0 0 ref $x || $x || 'Math::BigInt::Lite'
1223 2 7 $s || '+'

or 3 conditions

line l !l&&r !l&&!r condition
152 0 0 0 $x->{'_a'} || ${"${class}::accuracy";}
186 0 0 0 $x->{'_p'} || ${"${class}::precision";}
276 1 0 1 $param eq "lib" or $param eq "lib_version"
301 26 0 0 ref $_[0] || $_[0] =~ /^[a-z]\w*(?:::[a-z]\w*)*$/i
355 8 0 0 ref $_[0] || $_[0] =~ /^[a-z]\w*(?:::[a-z]\w*)*$/i
570 0 0 541 defined $r[0] or defined $r[1]
0 0 541 defined $r[0] or defined $r[1] or defined $accuracy
0 0 541 defined $r[0] or defined $r[1] or defined $accuracy or defined $precision
601 0 0 123 defined $r[0] or defined $r[1]
0 0 123 defined $r[0] or defined $r[1] or defined $accuracy
0 0 123 defined $r[0] or defined $r[1] or defined $accuracy or defined $precision
606 0 0 120 abs $$x >= $MAX_MUL || abs $$y >= $MAX_MUL
625 0 0 6 defined $r[0] or defined $r[1]
0 0 6 defined $r[0] or defined $r[1] or defined $accuracy
0 0 6 defined $r[0] or defined $r[1] or defined $accuracy or defined $precision
814 0 0 0 $selfref || $self
861 0 0 0 $selfref || $self
908 0 0 0 $selfref || $self
995 8 1 20 $b != 2 or $$y < 0
1018 6 1 8 $b != 2 or $$y < 0
1620 0 3 0 ref $self || $self