Condition Coverage

blib/lib/PDL/Graphics/Simple.pm
Criterion Covered Total %
condition 34 145 23.4


and 3 conditions

line !l l&&!r l&&r condition
302 0 0 12 /\.pm$/ && -f 'File::Spec'->catfile($dir, $_)
312 0 0 0 /\.pm$/ && -f 'File::Spec'->catfile($subd, $_)
470 0 0 0 defined $engine and defined $PDL::Graphics::Simple::mods->{$engine}
491 0 0 0 $type =~ /^f/i and not $output =~ /\.(\w{2,4})$/
803 0 0 0 $data->ndims == 3 and $data->dim(2) == 4 || $data->dim(2) == 3 || $data->dim(2) == 1
806 0 0 0 $h and ref $h eq "HASH"
0 0 0 $h and ref $h eq "HASH" and not grep((!$h->{$_}), ("NAXIS", "NAXIS1", "NAXIS2"))
833 17 0 1 @_ == 1 and ref $_[0] eq "HASH"
850 16 0 0 ref $_[0] eq "HASH" and ref $_[1] eq "HASH"
916 1 4 5 @_ and not ref $_[0]
5 0 5 @_ and not ref $_[0] and $_[0] =~ /[a-zA-Z]/
930 1 0 4 defined $ptn and defined $PDL::Graphics::Simple::plot_types->{$ptn}
932 4 0 0 $co2{'key'} and not defined $po->{'legend'}
947 4 7 0 @_ and UNIVERSAL::isa($_[0], 'PDL') || &looks_like_number($_[0]) || ref $_[0] eq 'ARRAY'
973 2 0 0 $ptn eq "contours" and @args == 1
1 0 1 $ptn eq "polylines" and @args == 1
993 0 0 0 $args[0]->ndims == 2 and $args[1]->ndims == 1
997 0 0 0 $args[0]->ndims == 2 and $args[1]->ndims == 1
1015 0 0 0 $dims->dim(0) != $pt->{'ndims'}[0] and !defined($pt->{'ndims'}[1]) || $dims->dim(0) != $pt->{'ndims'}[1]
1042 0 0 0 defined $minmax[0] and !defined($var->[0]) || $minmax[0] < $var->[0]
1044 0 0 0 defined $minmax[1] and !defined($var->[1]) || $minmax[1] > $var->[1]
1082 0 0 0 $obj->{'params'}{'multi'} and $args[1]{'oplot'}
1246 0 0 0 defined $me and UNIVERSAL::isa($me, "PDL::Graphics::Simple")
1274 0 0 0 defined $me and UNIVERSAL::isa($me, "PDL::Graphics::Simple")
1329 0 0 0 do { ref $size ne 'ARRAY' } && do { barf('size option requires an ARRAY ref or scalar') }
1339 0 0 0 $size->[0] > 0 and $size->[1] > 0

or 2 conditions

line l !l condition
500 0 0 $opt->{'multi'}[0] ||= 1
501 0 0 $opt->{'multi'}[1] ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
446 0 1 0 $ENV{'PDL_SIMPLE_ENGINE'} || sort(keys %$mods)
478 0 0 0 $ENV{'PDL_SIMPLE_OUTPUT'} || $opt->{'output'}
488 0 0 0 $output ||= $type eq "f" ? "plot.png" : ""
497 0 0 0 ref $opt->{'multi'} ne "ARRAY" or @{$opt->{'multi'};} != 2
803 0 0 0 $data->dim(2) == 4 || $data->dim(2) == 3 || $data->dim(2) == 1
0 0 0 $data->ndims == 2 or $data->ndims == 3 and $data->dim(2) == 4 || $data->dim(2) == 3 || $data->dim(2) == 1
816 0 0 0 $h->{$type} || $typel
867 1 1 1 not ref $po->{'bounds'} or ref $po->{'bounds'} ne "ARRAY"
2 1 0 not ref $po->{'bounds'} or ref $po->{'bounds'} ne "ARRAY" or @{$po->{'bounds'};} != 2
880 2 2 4 not ref $po->{$r} or ref $po->{$r} ne "ARRAY"
4 2 2 not ref $po->{$r} or ref $po->{$r} ne "ARRAY" or @{$po->{$r};} != 2
4 2 0 not ref $po->{$r} or ref $po->{$r} ne "ARRAY" or @{$po->{$r};} != 2 or $po->{$r}[0] == $po->{$r}[1]
899 0 5 0 $po->{'justify'} //= $called_from_imag ? 1 : 0
939 0 4 0 $co2{'key'} // sprintf("%s %d", $ptns, 1 + @$keys)
947 7 0 0 UNIVERSAL::isa($_[0], 'PDL') || &looks_like_number($_[0]) || ref $_[0] eq 'ARRAY'
1015 0 0 0 !defined($pt->{'ndims'}[1]) || $dims->dim(0) != $pt->{'ndims'}[1]
1042 0 0 0 !defined($var->[0]) || $minmax[0] < $var->[0]
1044 0 0 0 !defined($var->[1]) || $minmax[1] > $var->[1]
1060 0 0 0 $po->{$r}[0] //= $var->[0]
1061 0 0 0 $po->{$r}[1] //= $var->[1]
1074 0 0 0 $po->{$r}[0] <= 0 or $po->{$r}[1] <= 0