Condition Coverage

blib/lib/Chart/Gnuplot.pm
Criterion Covered Total %
condition 91 183 49.7


and 3 conditions

line !l l&&!r l&&r condition
35 0 35 0 $hash{'terminal'} =~ /^post/ and $ext eq 'eps'
146 0 0 0 defined $$self{'title'} and defined $$self{'bg'}
152 0 0 0 scalar @charts == 1 and ref $charts[0] eq 'ARRAY'
261 0 0 3 defined $$self{'_terminal'} and $$self{'_terminal'} eq 'auto'
264 2 0 1 defined $$self{'orient'} and $$self{'orient'} eq 'portrait'
364 2 1 2 defined $$ds{'func'} and ref $$ds{'func'} eq 'HASH'
395 6 0 0 defined $$self{'timeaxis'} and $$self{'timeaxis'} =~ /(^|,)\s*$1\s*(,|$)/
495 0 2 3 defined $$self{$attr} && $$self{$attr} ne ''
651 3 0 1 defined $$tic{'mirror'} and $$tic{'mirror'} eq 'off'
664 1 0 0 not $font =~ /\,/ and defined $$tic{'fontsize'}
727 0 2 0 defined $$grid{'xlines'} && $$grid{'xlines'} =~ /^off/
729 0 2 0 defined $$grid{'ylines'} && $$grid{'ylines'} =~ /^off/
731 2 0 0 defined $$grid{'zlines'} && $$grid{'zlines'} =~ /^off/
735 0 1 1 defined $$grid{'xlines'} and $$grid{'xlines'} =~ /,\s?on$/
0 1 0 defined $$self{'minorgrid'} and !defined($$mgrid{'xlines'}) || $$mgrid{'xlines'} eq 'on'
741 0 2 0 defined $$grid{'ylines'} and $$grid{'ylines'} =~ /,\s?on$/
0 2 0 defined $mgrid and !defined($$mgrid{'ylines'}) || $$mgrid{'ylines'} eq 'on'
747 2 0 0 defined $$grid{'x2lines'} and $$grid{'x2lines'} eq 'on'
749 2 0 0 defined $$grid{'y2lines'} and $$grid{'y2lines'} eq 'on'
753 2 0 0 defined $$mgrid{'x2lines'} and $$mgrid{'x2lines'} eq 'on'
755 2 0 0 defined $$mgrid{'y2lines'} and $$mgrid{'y2lines'} eq 'on'
805 1 0 0 defined $mgrid and $mgrid eq 'on'
1018 0 0 0 defined $err and $err ne ''
1026 0 0 0 defined $$self{'_terminal'} and $$self{'_terminal'} eq 'auto'
1280 0 0 0 defined $rect{'width'} and defined $rect{'height'}
1319 0 0 0 defined $elli{'width'} and defined $elli{'height'}
1490 0 0 0 defined $$self{'_terminal'} and $$self{'_terminal'} eq 'auto'
1514 0 0 0 defined $$self{'_terminal'} and $$self{'_terminal'} eq 'auto'
1584 0 0 0 defined $$self{'orient'} and $$self{'orient'} eq 'portrait'
1588 0 0 0 defined $err and $err ne ''
1603 0 0 0 defined $err and $err ne ''
1865 4 1 8 defined $$self{'xdata'} and defined $$self{'style'}
5 7 1 defined $$self{'xdata'} and defined $$self{'style'} and $$self{'style'} =~ /^(financebars|candlesticks)$/
4 1 7 defined $$self{'xdata'} and defined $$self{'style'}
5 4 3 defined $$self{'xdata'} and defined $$self{'style'} and $$self{'style'} =~ /error/
4 1 4 defined $$self{'xdata'} and defined $$self{'style'}
5 3 1 defined $$self{'xdata'} and defined $$self{'style'} and $$self{'style'} eq 'hbars'
4 1 3 defined $$self{'xdata'} and defined $$self{'style'}
5 2 1 defined $$self{'xdata'} and defined $$self{'style'} and $$self{'style'} eq 'hlines'
4 1 2 defined $$self{'xdata'} and defined $$self{'style'}
5 1 1 defined $$self{'xdata'} and defined $$self{'style'} and $$self{'style'} eq 'histograms'
1929 1 2 1 defined $$self{'style'} and $$self{'style'} =~ /^(financebars|candlesticks)$/
1 1 1 defined $$self{'style'} and $$self{'style'} =~ /^yerror/
1956 2 2 1 defined $$self{'style'} and $$self{'style'} eq 'hlines'
2 1 1 defined $$self{'style'} and $$self{'style'} eq 'hbars'
2 0 1 defined $$self{'style'} and $$self{'style'} eq 'histograms'

or 3 conditions

line l !l&&r !l&&!r condition
24 0 0 35 defined $hash{'terminal'} or defined $hash{'term'}
376 11 77 5 grep(/^$attr$/, ('gnuplot', 'convert', 'encoding', 'imagesize', 'orient', 'bg', 'plotbg', 'timeaxis')) || $attr =~ /^_/
562 0 0 1 not defined $$title{'enhanced'} or $$title{'enhanced'} ne 'on'
607 1 0 1 not defined $$label{'enhanced'} or $$label{'enhanced'} ne 'on'
721 2 0 1 ref $grid eq 'HASH' or ref $mgrid eq 'HASH'
735 0 1 0 !defined($$mgrid{'xlines'}) || $$mgrid{'xlines'} eq 'on'
1 0 1 defined $$grid{'xlines'} and $$grid{'xlines'} =~ /,\s?on$/ or defined $$self{'minorgrid'} and !defined($$mgrid{'xlines'}) || $$mgrid{'xlines'} eq 'on'
741 1 0 1 !defined($$mgrid{'ylines'}) || $$mgrid{'ylines'} eq 'on'
0 0 2 defined $$grid{'ylines'} and $$grid{'ylines'} =~ /,\s?on$/ or defined $mgrid and !defined($$mgrid{'ylines'}) || $$mgrid{'ylines'} eq 'on'
903 0 0 0 not defined $$title{'enhanced'} or $$title{'enhanced'} ne 'on'
915 1 0 0 defined $$legend{'sample'}{'position'} or $$legend{'sample'}{'position'} eq 'left'
1047 0 0 0 grep(/^$opt$/, ('arrow', 'grid', 'label', 'logscale', 'object', 'parametric')) || $opt =~ /tics$/
1089 4 0 0 not defined $label{'enhanced'} or $label{'enhanced'} ne 'on'
1092 3 0 1 defined $label{'pointtype'} or defined $label{'pointsize'}
3 0 1 defined $label{'pointtype'} or defined $label{'pointsize'} or defined $label{'pointcolor'}