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 36 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 ''
654 5 0 1 defined $$tic{'mirror'} and $$tic{'mirror'} eq 'off'
681 1 0 0 not $font =~ /\,/ and defined $$tic{'fontsize'}
745 0 2 0 defined $$grid{'xlines'} && $$grid{'xlines'} =~ /^off/
747 0 2 0 defined $$grid{'ylines'} && $$grid{'ylines'} =~ /^off/
749 2 0 0 defined $$grid{'zlines'} && $$grid{'zlines'} =~ /^off/
753 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'
759 0 2 0 defined $$grid{'ylines'} and $$grid{'ylines'} =~ /,\s?on$/
0 2 0 defined $mgrid and !defined($$mgrid{'ylines'}) || $$mgrid{'ylines'} eq 'on'
765 2 0 0 defined $$grid{'x2lines'} and $$grid{'x2lines'} eq 'on'
767 2 0 0 defined $$grid{'y2lines'} and $$grid{'y2lines'} eq 'on'
771 2 0 0 defined $$mgrid{'x2lines'} and $$mgrid{'x2lines'} eq 'on'
773 2 0 0 defined $$mgrid{'y2lines'} and $$mgrid{'y2lines'} eq 'on'
826 1 0 0 defined $mgrid and $mgrid eq 'on'
1038 0 0 0 defined $err and $err ne ''
1046 0 0 0 defined $$self{'_terminal'} and $$self{'_terminal'} eq 'auto'
1297 0 0 0 defined $rect{'width'} and defined $rect{'height'}
1336 0 0 0 defined $elli{'width'} and defined $elli{'height'}
1507 0 0 0 defined $$self{'_terminal'} and $$self{'_terminal'} eq 'auto'
1531 0 0 0 defined $$self{'_terminal'} and $$self{'_terminal'} eq 'auto'
1601 0 0 0 defined $$self{'orient'} and $$self{'orient'} eq 'portrait'
1605 0 0 0 defined $err and $err ne ''
1620 0 0 0 defined $err and $err ne ''
1882 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'
1946 1 2 1 defined $$self{'style'} and $$self{'style'} =~ /^(financebars|candlesticks)$/
1 1 1 defined $$self{'style'} and $$self{'style'} =~ /^yerror/
1973 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 36 defined $hash{'terminal'} or defined $hash{'term'}
376 11 79 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'
739 2 0 1 ref $grid eq 'HASH' or ref $mgrid eq 'HASH'
753 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'
759 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'
923 0 0 0 not defined $$title{'enhanced'} or $$title{'enhanced'} ne 'on'
935 1 0 0 defined $$legend{'sample'}{'position'} or $$legend{'sample'}{'position'} eq 'left'
1067 0 0 0 grep(/^$opt$/, ('arrow', 'grid', 'label', 'logscale', 'object', 'parametric')) || $opt =~ /tics$/
1108 4 0 0 not defined $label{'enhanced'} or $label{'enhanced'} ne 'on'
1111 3 0 1 defined $label{'pointtype'} or defined $label{'pointsize'}
3 0 1 defined $label{'pointtype'} or defined $label{'pointsize'} or defined $label{'pointcolor'}