Branch Coverage

blib/lib/PDL/Graphics/Simple/Gnuplot.pm
Criterion Covered Total %
branch 3 106 2.8


line true false branch
55 1 0 unless defined $force
57 0 1 unless $force or not defined $PDL::Graphics::Simple::Gnuplot::mod->{'ok'}
63 1 0 if ($@)
68 0 0 if ($PDL::Graphics::Gnuplot::VERSION < $required_PGG_version)
78 0 0 if ($@)
86 0 0 if ($ENV{'PDL_SIMPLE_DEVICE'}) { }
90 0 0 if ($PDL::Graphics::Simple::Gnuplot::mod->{'valid_terms'}{$term})
97 0 0 unless (defined $okterm)
123 0 0 unless defined $opt_in
129 0 0 unless (check())
130 0 0 unless check(1)
141 0 0 if ($opt->{'type'} =~ /^i/i) { }
142 0 0 if defined $opt->{'output'}
145 0 0 if (my $try = $PDL::Graphics::Simple::Gnuplot::mod->{'itype'}) { }
147 0 0 +($PDL::Graphics::Simple::Gnuplot::disp_opts->{$try} // {})->{'persist'} ? :
150 0 0 if (my $try = $ENV{'PDL_SIMPLE_DEVICE'}) { }
152 0 0 +($PDL::Graphics::Simple::Gnuplot::disp_opts->{$try} // {})->{'persist'} ? :
157 0 0 +($PDL::Graphics::Simple::Gnuplot::disp_opts->{$try} // {})->{'persist'} ? :
159 0 0 if $gpw
162 0 0 unless $gpw
171 0 0 if ($opt->{'output'} =~ /\.(\w{2,4})$/) { }
185 0 0 if (ref $ft eq 'ARRAY') { }
0 0 elsif (not defined $PDL::Graphics::Simple::Gnuplot::mod->{'valid_terms'}{$ft}) { }
187 0 0 if ($PDL::Graphics::Simple::Gnuplot::mod->{'valid_terms'}{$try})
192 0 0 if (ref $ft)
201 0 0 unless (defined $ft)
202 0 0 unless ($PDL::Graphics::Simple::Gnuplot::mod->{'valid_terms'}{'pscairo'} or $PDL::Graphics::Simple::Gnuplot::mod->{'valid_terms'}{'postscript'})
212 0 0 $PDL::Graphics::Simple::Gnuplot::mod->{'valid_terms'}{'pscairo'} ? :
215 0 0 if $PDL::Graphics::Gnuplot::termTab->{$ft}{'color'}
216 0 0 if $PDL::Graphics::Gnuplot::termTab->{$ft}{'dashed'}
224 0 0 if (defined $opt->{'multi'}) { }
316 0 0 $ipo->{'justify'} > 0 ? :
319 0 0 if (defined $ipo->{'legend'})
321 0 0 if ($ipo->{'legend'} =~ /l/i) { }
0 0 elsif ($ipo->{'legend'} =~ /r/i) { }
328 0 0 if ($ipo->{'legend'} =~ /t/i) { }
0 0 elsif ($ipo->{'legend'} =~ /b/i) { }
338 0 0 if $ipo->{'logaxis'}
340 0 0 unless ($ipo->{'oplot'})
347 0 0 unless my $ct = $$curve_types{$block->[0]{'with'}}
348 0 0 ref $ct eq 'CODE' ? :
353 0 0 unless ($co->{'with'} eq "labels")
356 0 0 if ($co->{'width'})
357 0 0 if $co->{'with'} =~ /^points/
361 0 0 if defined $co->{'key'}
366 0 0 if ($me->{'nplots'})
367 0 0 unless ($me->{'plot_no'})
372 0 0 if ($ipo->{'oplot'}) { }
379 0 0 if ($me->{'nplots'}) { }
381 0 0 if ($me->{'plot_no'} >= $me->{'nplots'})
384 0 0 if $me->{'opt'}{'type'} =~ /^f/i
387 0 0 if $me->{'opt'}{'type'} =~ /^f/i
390 0 0 if ($me->{'opt'}{'type'} =~ /^f/i and $me->{'conv_fn'})