Condition Coverage

blib/lib/CXC/PDL/Bin1D.pm
Criterion Covered Total %
condition 37 53 69.8


and 3 conditions

line !l l&&!r l&&r condition
225 23 12 0 defined $opt{'min_width'} || defined $opt{'max_width'} and not defined $opt{'width'}
228 24 11 0 not defined $opt{'error'} and $opt{'error_algo'} eq "rss"
237 0 0 26 defined $opt{'max_width'} && defined $opt{'max_nelem'}
679 6 6 0 defined $opt->{'imax'} and defined $opt->{'nbins'}
689 6 6 0 defined $opt->{'imin'} and defined $opt->{'nbins'}

or 2 conditions

line l !l condition
230 6 29 $opt{'min_width'} ||= 0
231 9 26 $opt{'max_width'} ||= 0
232 18 17 $opt{'max_nelem'} ||= 0
243 24 11 defined $opt{'error'} && 1 || 0
12 23 defined $opt{'width'} && 16 || 0
8 27 $opt{'fold'} && 8 || 0
0 35 $opt{'set_bad'} && 4 || 0
588 0 50 defined $opt->{'weight'} && 2 || 0
0 50 $opt->{'want_sum_weight'} && 16384 || 0
0 50 $opt->{'want_sum_weight2'} && 32768 || 0
0 50 $opt->{'want_extrema'} && 8192 || 0
592 16 34 ($Map_OOB{lc $opt->{'oob'}} // $opt->{'oob'} && 512) || 0
653 30 0 $range //= "minmax"
694 30 0 0 eval { do { my($imin, $imax) = $dims eq "slice" ? map({$_->dummy(0);} $opt->{'index'}->minmaximum) : map({PDL::indx([$_]);} $opt->{'index'}->minmax); if ($range eq "minmax") { die "do not specify $_ when specifying 'minmax'\range with " foreach (grep {defined $opt->{$_};} "imin", "imax", "nbins"); $opt->{'imin'} = $imin; $opt->{'imax'} = $imax; } elsif ($range eq "min") { die "do not specify imin when specifying 'min'\n" if defined $opt->{'imin'}; die "specify exactly one of 'imax' or 'nbins'\n" if defined $opt->{'imax'} and defined $opt->{'nbins'}; $opt->{'imin'} = $imin; } elsif ($range eq "max") { die "do not specify imax\n" if defined $opt->{'imax'}; die "specify exactly one of 'imin' or 'nbins'\n" if defined $opt->{'imin'} and defined $opt->{'nbins'}; $opt->{'imax'} = $imax; } ; 1 } } // do { my $error = $@; chomp $error; Carp::croak($opt->{'range'}, ": error: $error\n") }

or 3 conditions

line l !l&&r !l&&!r condition
225 6 6 23 defined $opt{'min_width'} || defined $opt{'max_width'}
730 44 6 0 $opt->{'imin'} //= $opt->{'imax'} - $opt->{'nbins'} + 1
731 32 18 0 $opt->{'nbins'} //= $opt->{'imax'} - $opt->{'imin'} + 1