Condition Coverage

blib/lib/PDL/Graphics/Limits.pm
Criterion Covered Total %
condition 42 65 64.6


and 2 conditions

line l !l condition
419 0 20 defined $attr->{'KeySpec'} and scalar @{$attr->{'KeySpec'};}
625 6 0 0 do { $attr->{'KeyCroak'} } && do { die "vector ${nvec}: missing key in data set hash: ", $spec->{$el}, "\n" }
718 194 81 0 $keys =~ s/$re// and $k{$what} = $1

and 3 conditions

line !l l&&!r l&&r condition
88 16 202 21 not exists $vec->{'trans'} and exists $attr->{'Trans'}[$ivec]
92 202 24 13 exists $vec->{'trans'} and not defined $vec->{'trans'}
101 478 0 239 exists $vec->{$_} and defined $vec->{$_}
218 0 0 0 $min < 0 and $axis->[0] >= 0
221 0 0 0 $max > 0 and $axis->[1] <= 0
258 30 13 33 $xlog <= 0 and 'down' eq $what || $xlog != $ilog
6 16 14 $xlog > 0 and "down" eq $what
22 10 4 $xlog > 0 and "down" eq $what and $xlog == $ilog
414 0 0 7 @$aref > 1 and 1 == grep({ref $_;} @$aref)
558 36 6 1 @keys and @{$KeySpec;}
42 1 0 @keys and @{$KeySpec;} and @{$KeySpec;} <= @keys
728 51 3 0 exists $k{'err'} and exists $k{'errn'} || exists $k{'errp'}
767 0 0 0 do { not ref $spec->[0] } && do { die "unexpected non-scalar element in Limits spec\n" if grep {ref $_;} @$spec; my(@lims) = @$spec; $lims[0] = undef unless defined $lims[0]; $lims[1] = undef unless defined $lims[1]; push @limits, \@lims }

or 3 conditions

line l !l&&r !l&&!r condition
258 24 16 6 'down' eq $what || $xlog != $ilog
40 8 28 $xlog <= 0 and 'down' eq $what || $xlog != $ilog or $xlog > 0 and "down" eq $what and $xlog == $ilog
346 0 2 107 not $ref or UNIVERSAL::isa($ds, "PDL")
456 4 135 20 not $ref or UNIVERSAL::isa($vec, "PDL")
505 0 0 19 @el < 1 or @el > 4
728 0 0 3 exists $k{'errn'} || exists $k{'errp'}