Condition Coverage

blib/lib/PDL/Transform/Color.pm
Criterion Covered Total %
condition 15 93 16.1


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
412 0 0 10 exists $me->{'params'}{'gamma'} and defined $me->{'params'}{'gamma'}
0 9 1 exists $me->{'params'}{'gamma'} and defined $me->{'params'}{'gamma'} and $me->{'params'}{'gamma'} != 1
1086 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])
1167 0 1 0 $opt->{'lut'}{'phot'} and $opt->{'perceptual'}
1659 0 2 0 defined $opt->{'htgamma'} and $opt->{'htgamma'} != 1
1683 0 2 0 defined $opt->{'htgamma'} and $opt->{'htgamma'} != 1
1953 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
2008 0 0 0 exists $me->{'params'}{'gamma'} and defined $me->{'params'}{'gamma'}
0 0 0 exists $me->{'params'}{'gamma'} and defined $me->{'params'}{'gamma'} and $me->{'params'}{'gamma'} != 1
2277 0 0 0 $name->nelem == 2 || $name->nelem == 3 and $name->dim(0) == $name->nelem
2300 0 0 0 $flsubno and $flno != 3
2306 0 0 0 $flno == 3 and $flsubno
2471 0 0 0 exists $new_rgb->{$k} and defined $new_rgb->{$k}
0 0 0 exists $new_rgb->{$k} and defined $new_rgb->{$k} and UNIVERSAL::isa($new_rgb->{$k}, 'PDL')
0 0 0 exists $new_rgb->{$k} and defined $new_rgb->{$k} and UNIVERSAL::isa($new_rgb->{$k}, 'PDL') and $new_rgb->{$k}->nelem == 3
0 0 0 exists $new_rgb->{$k} and 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
2151 18 0 shift() || {}
2283 0 20 shift() || {}

or 3 conditions

line l !l&&r !l&&!r condition
1099 0 0 1 $me->{'params'}{'combination'} < 0 or $me->{'params'}{'combination'} > 5
1137 1 0 0 defined $min || defined $max
1145 0 0 1 $min == $max or not &isfinite($min)
0 0 1 $min == $max or not &isfinite($min) or not &isfinite($max)
1952 0 0 0 $me->{'params'}{'method'} =~ /^B/i or length $me->{'params'}{'method'} == 0
2157 0 0 18 any($D < 40) or any($D > 250)
2277 0 0 0 $name->nelem == 2 || $name->nelem == 3
2300 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
2313 0 0 0 $hpno < 1 or $hpno > 5