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 5740 ref $that and eval { do { $that->isa('Math::Polynomial') } }
149 863 9576 1308 @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 35 49923 0 <= $degree && $degree < @{$this->[0];}
312 9 463 1020 $eq and 0 <= $i
323 946 2 39 $eq and 0 <= $i
379 7261 4904 7153 $i > 0 and $j < $that_d
508 6 3 3 $check and $this->coeff_zero != $rem
517 1 433 2963 0 <= $degree && $this->coeff_one == $this->coeff($degree)
533 1 4 1 defined $max_degree and $degree * $exp > $max_degree
596 167 282 1 defined $max_degree and $this->degree + $exp > $max_degree
614 1 4 1 defined $max_degree and $degree * $exp > $max_degree
697 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
707 112 36 17 $ltz and &$ltz($coeff)
716 14 8 143 $with_variable && $config{'fold_one'}
88 4 51 0 == $exp and $config{'fold_exp_zero'}
753 1 8 3 $ltz && &$ltz($coeff)
759 4 5 3 $exp && $this->coeff_one == $coeff
796 2 6 4 $ltz && &$ltz($coeff)
827 12 10 12 defined $result and $zero == $coeff
853 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;}
522 1 2 4 $this->is_zero or $this->is_monic
682 50 8 17 $params or $this->string_config
716 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
724 40 4 55 0 != $exp or not $config{'fold_exp_zero'}
730 92 4 55 0 != $exp or not $config{'fold_exp_zero'}
732 50 2 44 1 != $exp or not $config{'fold_exp_one'}
857 10 6 6 0 == $exp or $one != $coeff
924 0 0 112 $that->is_zero or $d2->is_zero