Condition Coverage

blib/lib/Math/Polynomial.pm
Criterion Covered Total %
condition 102 104 98.0


and 3 conditions

line !l l&&!r l&&r condition
99 6 1 5747 ref $that and eval { do { $that->isa('Math::Polynomial') } }
149 875 9594 1328 @coeff and $zero == $coeff[-1]
164 2 270 2 defined $max_degree and $degree > $max_degree
216 1 1 90 ref $xvalues && ref $yvalues
242 1 37 49973 0 <= $degree && $degree < @{$this->[0];}
325 9 463 1020 $eq and 0 <= $i
336 946 2 39 $eq and 0 <= $i
392 7261 4904 7153 $i > 0 and $j < $that_d
521 6 3 3 $check and $this->coeff_zero != $rem
530 1 440 2963 0 <= $degree && $this->coeff_one == $this->coeff($degree)
546 1 4 1 defined $max_degree and $degree * $exp > $max_degree
609 167 282 1 defined $max_degree and $this->degree + $exp > $max_degree
627 1 4 1 defined $max_degree and $degree * $exp > $max_degree
725 14 70 124 $with_variable and $exp < $max_exp
84 6 118 $with_variable and $exp < $max_exp and $config{'fold_zero'}
6 75 43 $with_variable and $exp < $max_exp and $config{'fold_zero'} and $coeff == $zero
735 112 36 17 $ltz and &$ltz($coeff)
744 14 8 143 $with_variable && $config{'fold_one'}
88 4 51 0 == $exp and $config{'fold_exp_zero'}
781 1 8 3 $ltz && &$ltz($coeff)
787 4 5 3 $exp && $this->coeff_one == $coeff
824 2 6 4 $ltz && &$ltz($coeff)
855 12 10 12 defined $result and $zero == $coeff
881 3 12 7 $ltz && &$ltz($coeff)

or 2 conditions

line l !l condition
205 5 1 $config || {}

or 3 conditions

line l !l&&r !l&&!r condition
216 2 1 89 not ref $xvalues && ref $yvalues or @{$xvalues;} != @{$yvalues;}
535 1 2 4 $this->is_zero or $this->is_monic
710 50 8 17 $params or $this->string_config
744 22 51 92 not $with_variable && $config{'fold_one'} or 0 == $exp and $config{'fold_exp_zero'}
51 40 52 not $with_variable && $config{'fold_one'} or 0 == $exp and $config{'fold_exp_zero'} or $one != $coeff
752 40 4 55 0 != $exp or not $config{'fold_exp_zero'}
758 92 4 55 0 != $exp or not $config{'fold_exp_zero'}
760 50 2 44 1 != $exp or not $config{'fold_exp_one'}
885 10 6 6 0 == $exp or $one != $coeff
952 0 0 112 $that->is_zero or $d2->is_zero