Condition Coverage

blib/lib/PDL/Transform/Color.pm
Criterion Covered Total %
condition 16 88 18.1


and 2 conditions

line l !l condition
1021 1 0 do { not defined $max } && do { $max = $in->max }

and 3 conditions

line !l l&&!r l&&r condition
970 0 0 0 defined $me->{'params'}{'irange'}[0] and defined $me->{'params'}{'irange'}[1]
1 0 0 $me->{'params'}{'irange'}[0] == $me->{'params'}{'irange'}[1] and (defined $me->{'params'}{'irange'}[0] and defined $me->{'params'}{'irange'}[1])
1051 0 1 0 $opt->{'lut'}{'phot'} and $opt->{'perceptual'}
1481 0 2 0 defined $opt->{'htgamma'} and $opt->{'htgamma'} != 1
1505 0 2 0 defined $opt->{'htgamma'} and $opt->{'htgamma'} != 1
1775 0 0 0 $me->{'params'}{'method'}->ndims == 2 and $me->{'params'}{'method'}->dim(0) == 3
0 0 0 $me->{'params'}{'method'}->ndims == 2 and $me->{'params'}{'method'}->dim(0) == 3 and $me->{'params'}{'method'}->dim(1) == 3
2094 0 0 0 $name->nelem == 2 || $name->nelem == 3 and $name->dim(0) == $name->nelem
2117 0 0 0 $flsubno and $flno != 3
2123 0 0 0 $flno == 3 and $flsubno
2284 0 0 0 defined $new_rgb->{$k} and UNIVERSAL::isa($new_rgb->{$k}, "PDL")
0 0 0 defined $new_rgb->{$k} and UNIVERSAL::isa($new_rgb->{$k}, "PDL") and $new_rgb->{$k}->nelem == 3
0 0 0 defined $new_rgb->{$k} and UNIVERSAL::isa($new_rgb->{$k}, "PDL") and $new_rgb->{$k}->nelem == 3 and $new_rgb->{$k}->dim(0) == 3

or 2 conditions

line l !l condition
368 17 0 $me->{'params'}{'gamma'} // 1
1830 0 0 $me->{'params'}{'gamma'} // 1
1968 22 0 shift() || {}
2100 0 24 shift() || {}

or 3 conditions

line l !l&&r !l&&!r condition
494 1 3 0 $opt->{'display_gamma'} != 1 or $opt->{'byte'}
3 0 0 $opt->{'display_gamma'} != 1 or $opt->{'byte'} or $opt->{'clip'}
983 0 0 1 $me->{'params'}{'combination'} < 0 or $me->{'params'}{'combination'} > 5
1021 1 0 0 defined $min || defined $max
1029 0 0 1 $min == $max or not isfinite($min)
0 0 1 $min == $max or not isfinite($min) or not isfinite($max)
1774 0 0 0 $me->{'params'}{'method'} =~ /^B/i or length $me->{'params'}{'method'} == 0
1974 0 0 22 any($D < 40) or any($D > 250)
2094 0 0 0 $name->nelem == 2 || $name->nelem == 3
2117 0 0 0 $flno < 1 or $flno > 12
0 0 0 $flno < 1 or $flno > 12 or $flsubno and $flno != 3
0 0 0 $flno < 1 or $flno > 12 or $flsubno and $flno != 3 or $flsubno > 15
2130 0 0 0 $hpno < 1 or $hpno > 5