Condition Coverage

blib/lib/PDL/Graphics/Gnuplot.pm
Criterion Covered Total %
condition 198 460 43.0


and 3 conditions

line !l l&&!r l&&r condition
2340 3 20 0 0 + @_ and ref $_[$#_] eq "HASH"
2353 3 1 19 @_ and @_ % 2
2408 0 0 23 $PDL::Graphics::Gnuplot::termTab->{$terminal} and $PDL::Graphics::Gnuplot::termTab->{$terminal}{'opt'}
2421 23 0 0 exists $PDL::Graphics::Gnuplot::termTab->{$terminal}{'opt'}[0]{'persist'} and not defined $termOptions->{'persist'}
2427 23 0 0 exists $PDL::Graphics::Gnuplot::termTab->{$terminal}{'opt'}[0]{'dashed'} and not defined $termOptions->{'dashed'}
2511 0 0 9 defined $this->{'aa'} and $this->{'aa'}
0 9 0 defined $this->{'aa'} and $this->{'aa'} and $this->{'aa'} != 1
9 0 0 defined $this->{'aa'} and $this->{'aa'} and $this->{'aa'} != 1 and $this->{'aa_ready'}
2513 0 0 0 rpiccan($this->{'image_format'}) and wpiccan($this->{'image_format'})
2657 7 0 2 $me->{'last_plot'} and $me->{'last_plot'}{'options'}
2757 2 66 52 0 + @_ and not ref $_[0]
2797 14 67 21 @_ >= 2 and ref($_[-1]) =~ /^(HASH)/
2993 0 0 2 defined $im_ranges->{$ax}[0] and defined $ranges->{$ax}[0]
0 2 0 defined $im_ranges->{$ax}[0] and defined $ranges->{$ax}[0] and $ranges->{$ax}[0] < $im_ranges->{$ax}[0]
2996 0 0 2 defined $im_ranges->{$ax}[1] and defined $ranges->{$ax}[1]
0 1 1 defined $im_ranges->{$ax}[1] and defined $ranges->{$ax}[1] and $ranges->{$ax}[1] > $im_ranges->{$ax}[1]
3002 0 17 0 defined $cbmin and "$cbmin" =~ /nan/i
3003 0 17 0 defined $cbmax and "$cbmax" =~ /nan/i
3024 0 0 0 defined $z->[0] and $z->[0] < $po_range->[0]
3025 0 0 0 defined $z->[1] and $z->[1] > $po_range->[1]
3039 0 82 3 not defined $this->{'options'}{'timefmt'} and grep((($this->{'options'}{$_ . 'data'} // "") =~ /^time/i), ("x", "x2", "y", "y2", "z", "cb"))
3181 0 0 0 defined $checkpointMessage and not $checkpointMessage =~ /^$postTestplotCheckpoint/m
3273 0 85 0 $this->{'aa'} and $this->{'aa'} != 1
3342 0 0 0 !$this->{'dumping'} && $echo_eating
3433 0 3 188 ref $args[$_] && (ref $args[$_] eq 'ARRAY' || $args[$_]->$PDL::Graphics::Gnuplot::_isa('PDL'))
3458 1 0 2 not $with->[0] =~ /s$/i and exists $$plotStyleProps{lc $with->[0] . 's'}
3481 0 88 13 not $ENV{'PGG_SUPPRESS_BINARY_MISMATCH_WARNING'} and defined $chunk{'binaryWith'}
3487 12 1 0 $got ne $asked and not $this->{'binary_flag_defaulted'}
3518 101 0 0 $chunk{'options'}{'tuplesize'} and $NdataPiddles != $chunk{'options'}{'tuplesize'}
3554 17 76 0 $cdims == 1 and $imgFlag
3565 7 0 5 $dp->ndims == 3 and $dp->dim(1) >= 5
3582 0 71 19 defined $this->{'options'}{'binary'} and not $this->{'options'}{'binary'}
71 0 19 defined $this->{'options'}{'binary'} and not $this->{'options'}{'binary'} and not $imgFlag
71 10 9 defined $this->{'options'}{'binary'} and not $this->{'options'}{'binary'} and not $imgFlag and $chunk{'ArrayRec'} eq "array"
3605 78 12 0 $imgFlag and $dataPiddles[0]->dims < 2
3638 66 0 0 $ncurves >= 100 and not $bigthreads
3649 62 0 4 $chunk{'options'}{'legend'} and @{$chunk{'options'}{'legend'};}
62 2 2 $chunk{'options'}{'legend'} and @{$chunk{'options'}{'legend'};} and @{$chunk{'options'}{'legend'};} != $ncurves
3697 4 0 1 $dp->dim(0) == 3 and $dp->dim(2) >= 5
2 0 2 $dp->dim(2) == 3 and $dp->dim(0) >= 5
1 0 1 $dp->dim(0) == 4 and $dp->dim(2) >= 5
0 0 1 $dp->dim(2) == 4 and $dp->dim(0) >= 5
3730 0 111 0 $ddims[$i] > 1 and $ddims[$i] != $data_dims[$i]
3746 1 0 213 defined $ddims[$id] && $ddims[$id]
3775 15 3 2 $_->$PDL::Graphics::Gnuplot::_isa("PDL") and $_->ndims > 1
3778 6 8 1 defined $nelem and @$_ != $nelem
3787 2 1 0 defined $nelem and $_->nelem != $nelem
4332 0 0 0 $ch > 32 && $ch != 127
4529 0 0 0 $h->{'b'} || $h->{'k'} and not $this->{'quit'}
0 0 0 $h->{'b'} || $h->{'k'} and not $this->{'quit'} and $opt->{'n_points'} == 0 || $poly->dim(1) < $opt->{'n_points'}
4545 0 0 0 $$p->$PDL::Graphics::Gnuplot::_isa("PDL") and $$p->dim(1) > 0
5553 34 4 0 do { ref $parser eq 'ARRAY' } && do { if (ref $parser->[0]) { barf("HELP! Parser is confused. This is a bug, please report it.\n"); } elsif (0 + @$parser == 1) { my $a = $parser->[0]; $parser = sub { my($old, $newparam, $hash) = @_; barf("Unknown field $newparam (must match m/$a/)\n") unless $newparam =~ /$a/; return $newparam; } ; } else { my $abbrevs = _gen_abbrev_list(@$parser); my $p = sub { my($old, $newparam, $hash) = @_; my $k = eval { do { _expand_abbrev($newparam, $abbrevs, "enumerated $kk option") } }; if ($@) { my $s = $@; undef $@; barf($s); } ; return $k; } ; $parser = $p; } }
5823 490 0 0 do { ref $emitter ne 'CODE' } && do { barf('PLEH!') }
6937 0 0 0 defined $info[0] and defined $info[1]
6955 0 0 0 $terminal and $this->{'unknown_terms'}{$terminal}
6962 0 0 0 $terminal and $terminal ne "all"
7126 45 0 0 exists $ENV{'DISPLAY'} and not $XDG_RUNTIME_DIR_global
7242 45 0 0 $gp_numversion <= "4.006" and $gp_pl <= 5
7247 45 0 0 $gp_numversion < $gnuplot_dep_v and not $PDL::Graphics::Gnuplot::deprecated_this_session
7390 703 0 0 $this->{'options'}{'dump'} and not $this->{'dumping'}
703 0 0 $this->{'dumping'} and not $this->{'options'}{'dump'}
7420 0 0 0 $of < length $string and not $int_flag
7474 0 0 0 $flags->{'binary'} and $this->{'options'}{'tee'} && $this->{'options'}{'tee'} eq 'nobinary' || $this->{'dumping'} && $this->{'dumping'} eq 'nobinary'
7515 59 0 248 $opt->{'printwarnings'} && !$this->{'options'}{'silent'}
7672 0 306 0 not $ignore_errors and $fromerr =~ /^\s+\^\s*$/ms || $fromerr =~ /^\s*line/ms || $fromerr =~ /(fail(ed|s)?)|(error)|(expected \w+ driver)/io
7810 0 1 0 $data->ndims == 3 and $data->dim(2) == 4 || $data->dim(2) == 3 || $data->dim(2) == 1
7813 1 0 5 $h and ref $h eq "HASH"
1 0 5 $h and ref $h eq "HASH" and not grep((!$h->{$_}), ("NAXIS", "NAXIS1", "NAXIS2"))
7818 2 0 0 defined $xmin and defined $xmax
2 0 0 defined $xmin and defined $xmax and defined $ymin
0 0 0 defined $xmin and defined $xmax and defined $ymin and defined $ymax

or 2 conditions

line l !l condition
2464 0 23 $PDL::Graphics::Gnuplot::termTab->{$terminal}{'mouse'} || 0
2654 11 0 $me->{'options'} //= {}
2819 3 99 $this->{'options'}{'palette'} ||= []
2836 3 489 $this->{'options'}{$_ . 'data'} || ''
2885 0 92 $chunks->[$i]{'options'}{'axes'} // "x1y1"
2936 0 17 $im_ranges->{$xax} //= [undef, undef]
2946 0 17 $im_ranges->{$yax} //= [undef, undef]
2980 0 1 $ranges->{$xax} //= [undef, undef]
2983 0 1 $ranges->{$yax} //= [undef, undef]
3021 1 33 $this->{'options'}{$rkey} // [undef, undef]
3039 3 507 $this->{'options'}{$_ . 'data'} // ""
3057 0 0 $this->{'options'}{'topcmds'} // ""
3374 19 83 $this->{'options'}{'3d'} // 0
3419 8 43 ((ref($chunk{'options'}{'with'}) =~ /ARRAY/ ? $chunk{'options'}{'with'}[0] : $chunk{'options'}{'with'}) // $this->{'options'}{'globalwith'}) // ""
3440 8 43 $this->{'options'}{'globalwith'} // ["lines"]
4256 0 0 shift() // "Click mouse or press key in plot to continue..."
4297 0 0 $_ // ""
4317 0 0 $_ // ""
4491 0 0 $opt->{'n_points'} || 'indefinite'
4624 280 0 shift() // ""
5499 199 4 shift() || {}
5822 1100 0 $tableEntry->[1] || ' '
6924 0 0 shift() // ""
6934 0 0 $tt->{$a}[3] // 0
0 0 $tt->{$b}[3] // 0
7077 24 18 $PDL::Graphics::Gnuplot::termTabSource->{$_} // "Unknown but reported by gnuplot"
7099 45 0 shift() || 'main'
7184 0 45 $5 || 0
7313 44 0 $this->{'terminal'} // ""
7424 0 0 $! // "(Huh - no error code in \$!)"
7512 307 0 shift() || 'main'
7513 248 59 shift() // {}
7514 0 307 $opt->{'notimeout'} // 0
7516 0 307 $opt->{'ignore_errors'} // 0
7558 2 305 ($this->{'wait'} // 0) + 0 || 10

or 3 conditions

line l !l&&r !l&&!r condition
2836 0 0 82 $this->{'early_gnuplot'} || $MS_io_braindamage
20 82 0 $this->{'options'}{'binary'} //= $this->{'early_gnuplot'} || $MS_io_braindamage ? 0 : !grep((($this->{'options'}{$_ . 'data'} || '') =~ /time/), ("x", "x2", "y", "y2", "z", "cb"))
2883 13 56 23 $chunks->[$i]{'binaryWith'} // $this->{'options'}{'binary'}
2918 17 0 0 not defined $cbmin or $cmin < $cbmin
2919 17 0 0 not defined $cbmax or $cmax < $cbmax
2937 17 0 0 not defined $im_ranges->{$xax}[0] or $z->[0] < $im_ranges->{$xax}[0]
2938 17 0 0 not defined $im_ranges->{$xax}[1] or $z->[1] > $im_ranges->{$xax}[1]
2947 17 0 0 not defined $im_ranges->{$yax}[0] or $z->[0] < $im_ranges->{$yax}[0]
2948 17 0 0 not defined $im_ranges->{$yax}[1] or $z->[1] > $im_ranges->{$yax}[1]
2981 1 0 0 not defined $ranges->{$xax}[0] or $cxr->[0] < $ranges->{$xax}[0]
2982 1 0 0 not defined $ranges->{$xax}[1] or $cxr->[1] > $ranges->{$xax}[1]
2984 1 0 0 not defined $ranges->{$yax}[0] or $cyr->[0] < $ranges->{$yax}[0]
2985 1 0 0 not defined $ranges->{$yax}[1] or $cyr->[1] > $ranges->{$yax}[1]
3001 17 0 68 defined $cbmin or defined $cbmax
3024 0 0 0 not defined $po_range->[0] or defined $z->[0] and $z->[0] < $po_range->[0]
3025 0 0 0 not defined $po_range->[1] or defined $z->[1] and $z->[1] > $po_range->[1]
3028 1 33 0 $po_range->[0] //= $im_ranges->{$k}[0]
3029 1 32 1 $po_range->[1] //= $im_ranges->{$k}[1]
3310 0 0 0 $byte eq \4 or $byte eq \0
0 0 0 $byte eq \4 or $byte eq \0 or $byte eq ">"
3419 52 8 43 (ref($chunk{'options'}{'with'}) =~ /ARRAY/ ? $chunk{'options'}{'with'}[0] : $chunk{'options'}{'with'}) // $this->{'options'}{'globalwith'}
3440 52 51 0 $chunk{'options'}{'with'} ||= $this->{'options'}{'globalwith'} // ["lines"]
3553 1 16 76 $chunk{'options'}{'cdims'} || ($imgFlag || $is3d && $dataPiddles[0]->$PDL::Graphics::Gnuplot::_isa('PDL') && $dataPiddles[0]->ndims >= 2)
3694 1 2 2 $dp->dim(0) == 3 || $dp->dim(2) == 3
1 1 0 $dp->dim(0) == 4 || $dp->dim(2) == 4
3730 19 83 111 not defined $data_dims[$i] or $data_dims[$i] <= 1
4529 0 0 0 $h->{'b'} || $h->{'k'}
0 0 0 $opt->{'n_points'} == 0 || $poly->dim(1) < $opt->{'n_points'}
6967 0 0 0 not $terminal or $terminal eq "all"
6969 0 0 0 $terminal or $brief_form
0 0 0 $terminal or $brief_form or $dont_print
6978 0 0 0 $PDL::Graphics::Gnuplot::termTab->{$k}{'int'} or $PDL::Graphics::Gnuplot::termTab->{$k}{'mouse'}
6985 0 0 0 $PDL::Graphics::Gnuplot::termTab->{$k}{'int'} or $PDL::Graphics::Gnuplot::termTab->{$k}{'mouse'}
7155 45 0 16335 $s =~ /^FfFinished$/m or $zcount > 100
7156 16380 0 0 $errSelector->can_read(1) or $MS_io_braindamage
7219 0 0 0 $PDL::Graphics::Gnuplot::non_numeric_patch_warned or $ENV{'PGG_RC_OK'}
7225 0 0 45 $gp_version ne $Alien::Gnuplot::version or $gp_pl ne $Alien::Gnuplot::pl
7232 0 0 0 $gp_version ne $Alien::Gnuplot::version or $gp_pl ne $Alien::Gnuplot::pl
7335 0 0 0 $countdown > 0 or $countdown < -4
7390 0 0 703 $this->{'options'}{'dump'} and not $this->{'dumping'} or $this->{'dumping'} and not $this->{'options'}{'dump'}
7423 0 0 0 not defined $len or $len == 0
7471 0 0 703 $this->{'dumping'} or $this->{'options'}{'tee'}
7474 0 0 0 $this->{'options'}{'tee'} && $this->{'options'}{'tee'} eq 'nobinary' || $this->{'dumping'} && $this->{'dumping'} eq 'nobinary'
7571 306 0 18 $fromerr =~ /^$checkpoint/ms or $subproc_gone
7584 0 324 1 $MS_io_braindamage or $$this{"errSelector-$suffix"}->can_read($notimeout ? undef : $delay)
7591 0 0 324 $byte eq \4 or $byte eq \0
0 0 324 $byte eq \4 or $byte eq \0 or not length $byte
7641 1 0 306 $fromerr =~ /^(\s*(line \d+\:\s*)?[wW]arning\:.*)$/m or $fromerr =~ /$graphics_re/
1 0 306 $fromerr =~ /^(\s*(line \d+\:\s*)?[wW]arning\:.*)$/m or $fromerr =~ /$graphics_re/ or $fromerr =~ /^Populating font family aliases took/m
7665 0 0 306 $fromerr =~ s/^.*obsolete\s*function.*system\s*performance.\s*//s or $fromerr =~ s/^.*Populating font family aliases took.*cost\.//s
7672 1 0 305 $fromerr =~ /^\s+\^\s*$/ms || $fromerr =~ /^\s*line/ms || $fromerr =~ /(fail(ed|s)?)|(error)|(expected \w+ driver)/io
7732 0 3 0 $out or $err
7810 1 0 0 $data->dim(2) == 4 || $data->dim(2) == 3 || $data->dim(2) == 1
5 0 1 $data->ndims == 2 or $data->ndims == 3 and $data->dim(2) == 4 || $data->dim(2) == 3 || $data->dim(2) == 1
7821 0 2 0 $xmin //= $corners->slice("(0)")->min
7822 0 2 0 $xmax //= $corners->slice("(0)")->max
7823 0 2 0 $ymin //= $corners->slice("(1)")->min
7824 0 2 0 $ymax //= $corners->slice("(1)")->max
7842 10 5 0 $h->{$type} || $typel