Condition Coverage

blib/lib/Math/Symbolic/Custom/Factor.pm
Criterion Covered Total %
condition 79 114 69.3


and 3 conditions

line !l l&&!r l&&r condition
92 44 21 2 scalar keys %{$$n_hr{"terms"};} == 2 and $n_hr->{'terms'}{'constant_accumulator'} == 0
129 2 66 2 $t->term_type == 0 and $t->type == 2
288 41 0 24 scalar keys %n_terms == 1 and abs $acc > 1
41 0 24 scalar keys %n_terms == 1 and abs $acc > 1 and $acc eq int $acc
11 14 16 scalar keys %n_terms == 2 and $acc == 0
301 1 17 4 not $t =~ /,/ and $t =~ /:3$/
18 1 3 not $t =~ /,/ and $t =~ /:3$/ and defined $cbrt_x
18 2 1 not $t =~ /,/ and $t =~ /:3$/ and defined $cbrt_x and defined $cbrt_y
333 0 1 20 %n_terms and $acc < -1
339 1 4 15 not $t =~ /,/ and defined $sqrt_x
5 3 12 not $t =~ /,/ and defined $sqrt_x and $pow > 1
7 2 10 not $t =~ /,/ and defined $sqrt_x and $pow > 1 and $pow % 2 == 0
5 2 8 not $t =~ /,/ and defined $sqrt_x and $pow > 1 and $pow % 2 == 0 and defined $sqrt_y
383 0 15 1 not $t[0] =~ /,/ and $t[0] =~ /:2$/
15 0 1 not $t[0] =~ /,/ and $t[0] =~ /:2$/ and not $t[1] =~ /,/
15 0 1 not $t[0] =~ /,/ and $t[0] =~ /:2$/ and not $t[1] =~ /,/ and $t[1] =~ /:2$/
0 3 12 not $t[0] =~ /,/ and $t[0] =~ /:3$/
3 0 12 not $t[0] =~ /,/ and $t[0] =~ /:3$/ and not $t[1] =~ /,/
3 0 12 not $t[0] =~ /,/ and $t[0] =~ /:3$/ and not $t[1] =~ /,/ and $t[1] =~ /:3$/
385 1 0 0 $m[0] > 0 and $m[1] < 0
0 0 1 $m[0] < 0 and $m[1] > 0
389 0 0 0 defined $sqrt_y and defined $sqrt_x
390 0 0 0 $sqrt_x == 1 and $sqrt_y == 1
415 0 0 1 defined $sqrt_y and defined $sqrt_x
416 1 0 0 $sqrt_x == 1 and $sqrt_y == 1
440 5 3 4 $m[0] > 0 and $m[1] > 0
5 0 3 $m[0] > 0 and $m[1] < 0
0 0 5 $m[0] < 0 and $m[1] > 0
446 0 0 4 defined $cbrt_y and defined $cbrt_x
447 2 1 1 $cbrt_x == 1 and $cbrt_y == 1
474 0 0 3 defined $cbrt_y and defined $cbrt_x
475 1 1 1 $cbrt_x == 1 and $cbrt_y == 1
502 0 0 5 defined $cbrt_y and defined $cbrt_x
503 3 1 1 $cbrt_x == 1 and $cbrt_y == 1
632 18 6 19 $factors_in < scalar @factors and defined $nt
642 6 0 30 %n_terms and scalar @factors > 0

or 3 conditions

line l !l&&r !l&&!r condition
717 0 0 49 $k < 0 or $k > $n
718 14 14 21 $k == 0 or $k == $n